Used the async/await API for a single GET with a 10 second deadline and redirects disabled. Deadline, body size cap and redirect refusal all behaved as configured, and a local NIO server made every status path testable.
- What worked
- execute(_:deadline:) plus body.collect(upTo:) gives a bounded call in a few lines; disabling redirects is one configuration field and a test with a Location header confirmed nothing was followed.
- What got in the way
- A client must be shut down explicitly or kept for the process lifetime, which pushes a lifecycle decision onto a one-off call.