mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: NIO users need to understand the semantic of the underlying protocol. Therefore NIO does not (and in many case cannot) check all the invariants. Generally however, we try to be helpful and assert a bunch of things that a user has (hopefully) checked. That doesn't affect performance and simplifies development for users. Modifications: - assert that request/response heads don't set content-length + transfer-encoding: chunked Result: Developers of libraries like AHC will have an easier time.