mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-26 04:57:50 +00:00
Motivation: When we spiked out these codecs we were missing a number of error handling paths, which meant that erroneous input would lead to crashes. While we don't expect these handlers to have to face that kind of input, we should still aim to tolerate it where doing so is reasonable. Modifications: - Replaced all force unwraps and preconditions with throwing. Result: Fewer crashes on bad input.