Skip to content

support fake I/O layer #394

Open
Open
@weissi

Description

@weissi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementImprovements to existing feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions