Crate mock_proxy

Source
Expand description

This library was built to help test systems that use libraries which don’t provide any testing utilities themselves. It works by overriding the proxy and root ca attributes and intercepting proxy requests, then returning mock responses defined by the user

The following shows how to setup reqwest to send requests to a Proxy instance: simple_test

Structs§

Mock
The struct used to define mock responses
Proxy
Primary interface for the library