Open
Description
Many libraries depend on AHC which is great. The downside is that that means to test these libraries they either need to provide a layer which allows to fake AHC or we have to spin up an actual server (say on localhost
) to write integration tests with these libraries. That's super tedious and sometimes impossible.
AHC should allow to take a fake I/O layer which allows to run any AHC request without ever doing a network connection or a DNS lookup.
In the #392 suggestion, that would live in Tier 1. So for testing, one could create a fake HTTPService
which never actually speaks HTTP over a network protocol.