Expand description
Tower/Axum one-shot helpers for integration-style tests.
Enums§
- Json
Body Error - 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_statusbut allows choosing the method. - response_
body_ bytes - Reads the entire body after the response has been produced.