Module actix_web::test

source ·
Expand description

Structs

Async I/O test buffer.
Test Request builder.

Functions

Helper function that returns a response body of a TestRequest
Helper function that returns a deserialized response body of a TestRequest
Calls service and waits for response future completion.
Initialize service from application builder instance.
Creates service that always responds with 200 OK and no body.
Helper function that returns a response body of a ServiceResponse.
Helper function that returns a deserialized response body of a ServiceResponse.
Creates service that always responds with given status code and no body.
Fallible version of call_and_read_body_json that allows testing service call errors.
Fallible version of call_service that allows testing response completion errors.
Fallible version of read_body that allows testing MessageBody reading errors.
Fallible version of read_body_json that allows testing response deserialzation errors.