Skip to main content

Crate philiprehberger_http_test

Crate philiprehberger_http_test 

Source
Expand description

Declarative HTTP API integration testing framework with fluent assertions.

This crate provides a builder-based API for constructing HTTP requests and asserting properties of the responses. It is designed for integration tests against real or mock HTTP servers.

§Quick start

use philiprehberger_http_test::get;

let response = get("https://httpbin.org/get").send().unwrap();
response.assert_ok();

Structs§

TestRequest
A builder for constructing an HTTP test request.
TestResponse
The response from an HTTP test request, with assertion methods for validation.

Enums§

HttpTestError
Error type for HTTP test operations.

Functions§

delete
Create a DELETE request to the given URL.
get
Create a GET request to the given URL.
patch
Create a PATCH request to the given URL.
post
Create a POST request to the given URL.
put
Create a PUT request to the given URL.