Although we have test coverage for our network backends, we're not currently testing against them directly.
Since #699 added the network backends to the public API we should also implement some tests against them.
There's three classes of test case that we'd want covered here...
- Tests for the backends, without TLS.
- Tests for the backends, with TLS.
- Tests for the backends, with TLS-in-TLS.
I'd suggest that we start just by implementing some test cases for the first of those, with tests for each of...
httpcore.SyncBackend
httpcore.AnyIOBackend
httpcore.TrioBackend
So, just testing connecting, reading, writing.
Punching this one directly into an issue, since I think it's clear enough to not require a discussion phase.