Skip to main content

Module http

Module http 

Source
Expand description

Tower/Axum one-shot helpers for integration-style tests.

Enums§

JsonBodyError
Error from json_body.

Functions§

json_body
Collects the body and parses it as JSON.
oneshot
Sends one HTTP request through the router and returns the response.
oneshot_body_bytes
Collects the full response body as bytes (useful for assertions).
oneshot_status
Builds a GET (empty body) request, runs oneshot, returns the status code.
oneshot_status_with_method
Same as oneshot_status but allows choosing the method.
response_body_bytes
Reads the entire body after the response has been produced.