mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
* CONNECT method has no request body ### Motivation: [rfc7231](https://tools.ietf.org/html/rfc7231#section-4.3.6) said: > A payload within a `CONNECT` request message has no defined semantics; sending a payload body on a `CONNECT` request might cause some existing implementations to reject the request. ### Modifications: Change `HTTPMethod.CONNECT.hasRequestBody` to returns `.no`. ### Result: `HTTPRequestEncoder` does not generate chunked body for `CONNECT` method. * Change `HTTPMethod.CONNECT.hasRequestBody` to returns `.unlikely`