Re-exports§
pub use multipart::MultipartFilePart;pub use multipart::build_multipart_body;pub use test_client::TestClient;pub use form::encode_urlencoded_body;
Modules§
- form
- multipart
- test_
client - Core test client for Spikard applications
Structs§
- Response
Snapshot - Snapshot of an Axum response used by higher-level language bindings.
- SseEvent
- A single Server-Sent Event.
- SseStream
- Server-Sent Events (SSE) stream for testing.
- WebSocket
Connection - WebSocket connection wrapper for testing.
Enums§
- Snapshot
Error - Possible errors while converting an Axum response into a snapshot.
- WebSocket
Message - A WebSocket message that can be text or binary.
Functions§
- call_
test_ server - Execute an HTTP request against an Axum
TestServerby rehydrating it into the server’s ownaxum_test::TestRequestbuilder. - connect_
websocket - Connect to a WebSocket endpoint on the test server.
- snapshot_
http_ response - Convert an Axum response into a reusable
ResponseSnapshot. - snapshot_
response - Convert an
AxumTestResponseinto a reusableResponseSnapshot.