-
Notifications
You must be signed in to change notification settings - Fork 0
Add a ServerProtocol
#25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Conflicts: # Sources/HTTPServer/HTTPServer.swift # Conflicts: # Sources/Example/Example.swift # Conflicts: # Sources/HTTPServer/HTTPServer.swift
| associatedtype ConcludingRequestReader: ConcludingAsyncReader & ~Copyable | ||
| associatedtype ConcludingResponseWriter: ConcludingAsyncWriter & ~Copyable | ||
|
|
||
| associatedtype RequestHandler: HTTPServerRequestHandler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add docs to those associated types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added docs to associated types, but on second thought, I really don't think we need the readers and writers on the server protocol. We don't use them anywhere. Correct me if I'm wrong but we should get the same functionality just having the request handler as an associated type, and the associated types for readers and writers only on the handler.
No description provided.