Expand description
Test utilities for Gotham and Gotham consumer apps.
Re-exports§
pub use self::request::TestRequest;pub use crate::plain::test::TestServer;
Modules§
- request
- Test request behavior, shared between the tls::test and plain::test modules.
Structs§
- Async
Test Client - Client interface for issuing requests to an [
AsyncTestServer]. - Async
Test Request Builder - Builder for a request made with an
AsyncTestClient. - Async
Test Response - Wrapper around a
Responsewith some helper methods.Response::from(test_response)can be used to get the underlyingResponse - Test
Client - Client interface for issuing requests to a
Server. - Test
Response - Wrapping struct for the
Responsereturned by aTestClient. Provides access to theResponsevalue via theDeref,DerefMutandIntotraits, and also provides a function for awaiting a completed response body.
Traits§
- Server
- An in memory server for testing purposes.