Module ntex::web::test

source ·
Expand description

Various helpers for ntex applications to use during testing.

Structs§

Functions§

  • Calls service and waits for response future completion.
  • Create default test server config
  • Create service that responds with response with specified status code
  • Helper method for extractors testing
  • This method accepts application builder instance, and constructs service.
  • Reads response’s body and combines it to a Bytes objects
  • Create service that always responds with HttpResponse::Ok()
  • Helper function that returns a response body of a WebResponse.
  • Helper function that returns a response body of a TestRequest
  • Helper function that returns a deserialized response body of a TestRequest
  • Helper method for responders testing
  • Start test server with default configuration
  • Start test server with custom configuration