-
-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Labels
Description
Proper detection of request message bodies requires:
- Content-Length (Response with Content-Length should emit error when size does not match #92)
- Chunked transfer encoding (Feature: chunked encoding #58 )
- Empty bodies for certain requests
See https://tools.ietf.org/html/rfc7230#section-3.3
This means that we should take these into account and only emit data events for what is actually part of the given response and then emit an end and close event.
This is also a prerequisite for #39 and #41.
This feature is similar to the server side (reactphp/http#104 and #78).