mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: Verifying the contents of inbound request parts for `NIOHTTP1TestServer` can be quite tedious and whenever I use `NIOHTTP1TestServer` in different projects I find myself writing similar extensions to help verify the inbound request parts are as expected. Modifications: - Add verification methods to `NIOHTTP1TestServer` which checks for the expected part and optionally verifies it further in a callback Result: It's easier to test with NIOHTTP1TestServer