Expand description
HTTP request/response helpers for testing. HTTP test utilities for Reinhardt framework
Provides helper functions for creating and manipulating HTTP requests and responses in tests.
Structs§
Enums§
- Error
- The main error type for the Reinhardt framework.
Functions§
- assert_
has_ header - Assert response has header
- assert_
header_ contains - Assert header contains substring
- assert_
header_ equals - Assert header value equals expected
- assert_
no_ header - Assert response doesn’t have header
- assert_
status - Assert response status code
- create_
insecure_ request - Create a mock HTTP request (non-secure)
- create_
request - Create a test HTTP request
- create_
response_ with_ headers - Create a response with custom headers
- create_
response_ with_ status - Create a response with custom status code
- create_
secure_ request - Create a mock HTTPS request
- create_
test_ request - Create a mock HTTP request for testing with secure/insecure mode
- create_
test_ response - Create a mock response for testing
- extract_
json - Extract and deserialize JSON from a response
- get_
header - Get header value from response
- has_
header - Check if response has a specific header
- header_
contains - Check if header contains substring
- header_
equals - Check if header has specific value
Type Aliases§
- Result
- A convenient
Resulttype alias usingreinhardt_core::exception::Erroras the error type.