pub struct TestStubClient { /* private fields */ }
Expand description

TestStubClient provides an HTTP-client-like interface for unit testing. Instead of interacting with real servers, it loads a previously recorded HTTP session and verifies application behavior against it.

Implementations

Create a new, empty test stub client.

Push the given recording (the serialized bytes) into this test stub.

Trait Implementations

Execute (send) a previously-constructed HTTP request.
Returns a builder for an HTTP GET request.
Returns a builder for an HTTP POST request.
Returns a builder for an HTTP PUT request.
Returns a builder for an HTTP PATCH request.
Returns a builder for an HTTP DELETE request.
Returns a builder for an HTTP HEAD request.
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.