Skip to content

Commit

Permalink
Fix typoes in http_server documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mfelsche committed Mar 2, 2024
1 parent 78c7e02 commit e13a3c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http_server/handler.pony
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface Handler
When an [Request](http_server-Request.md) is received on an [Session](http_server-Session.md) actor,
the corresponding [Handler.apply](http_server-Handler.md#apply) method is called
with the request and a [RequestID](http_server-RequestID). The [Request](http_server-Request.md)
with the request and a [RequestID](http_server-RequestID.md). The [Request](http_server-Request.md)
contains the information extracted from HTTP Headers and the Request Line, but it does not
contain any body data. It is sent to [Handler.apply](http_server-Handler.md#apply) before the body
is fully received.
Expand All @@ -27,7 +27,7 @@ interface Handler
[RequestID](http_server-RequestID.md) of the request it belongs to. Now is the time to act on the full body data,
if it hasn't been processed yet.
The [RequestID](http_server-Requestid.md) must be kept around for sending the response for this request.
The [RequestID](http_server-RequestID.md) must be kept around for sending the response for this request.
This way the session can ensure, all responses are sent in the same order as they have been received,
which is required for HTTP pipelining. This way processing responses can be passed to other actors and
processing can take arbitrary times. The [Session](http_server-Session.md) will take care of sending
Expand Down
1 change: 1 addition & 0 deletions http_server/session.pony
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ trait tag Session
After calling this behaviour, this session and the connected [Handler](http_server-Handler.md) instance will not be called again, so it is necessary to do any required clean up right after this call.
See:
- [Protocol Upgrade Mechanism](https://developer.mozilla.org/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism)
- [Upgrade Header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade)
"""
Expand Down

0 comments on commit e13a3c2

Please sign in to comment.