-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Improve HTTP::Server docs #7251
Improve HTTP::Server docs #7251
Conversation
d461616
to
d153fcc
Compare
d153fcc
to
1c8e304
Compare
Co-Authored-By: straight-shoota <[email protected]>
Thanks @r00ster91 for proof reading! ❤️ |
src/http/server.cr
Outdated
# For example, an initial handler might handle exceptions raised from subsequent | ||
# handlers and return a `500 Server Error` status (see `HTTP::ErrorHandler`). | ||
# The next handler might log all incoming requests (see `HTTP::LogHandler`). | ||
# And the final handler deals with routing and application logic. |
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.
We are dropping how the optional block interact with the rest of the handlers.
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 don't follow. Are you referencing an intended change to the behaviour?
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.
Is it relevant for this PR? I didn't change this sentence, only split it from the previous one.
I think I'd prefer the ordering to talk about how the block form works first, and the role of |
This is a general overhaul of the
HTTP::Server
API docs, describing the updated behaviour after #5776.It adds some more details and structures the text.
I've left out the section about reusing connections which will be added with the changed behaviour in #7055.