Module bdrck::http

source ·
Expand description

http provides a really thin HTTP client wrapper around reqwest. The main value-add is the addition of a mechanism for recording HTTP sessions, which can be used for generating data for unit tests and then replaying it during the test so we can verify the client’s behavior given previously observed server behavior.

Modules

client provides a simple HTTP client trait and implementation, based upon reqwest.
recording provides structures used to record HTTP sessions, so they can later be replayed and verified in unit tests.
types defines custom types for modeling HTTP requests / responses.