Module gotham::test

source ·
Expand description

Test utilities for Gotham and Gotham consumer apps.



  • Test request behavior, shared between the tls::test and plain::test modules.


  • Client interface for issuing requests to an [AsyncTestServer].
  • Builder for a request made with an AsyncTestClient.
  • Wrapper around a Response with some helper methods. Response::from(test_response) can be used to get the underlying Response
  • Client interface for issuing requests to a Server.
  • Wrapping struct for the Response returned by a TestClient. Provides access to the Response value via the Deref, DerefMut and Into traits, and also provides a function for awaiting a completed response body.


  • An in memory server for testing purposes.