Module actix_web::test[][src]

Various helpers for Actix applications to use during testing.

Structs

TestBuffer

Async I/O test buffer.

TestRequest

Test Request builder.

Functions

call_service

Calls service and waits for response future completion.

default_service

Create service that always responds with given status code and no body.

init_service

Initialize service from application builder instance.

load_stream
ok_service

Create service that always responds with HttpResponse::Ok() and no body.

read_body

Helper function that returns a response body of a ServiceResponse.

read_body_json

Helper function that returns a deserialized response body of a ServiceResponse.

read_response

Helper function that returns a response body of a TestRequest

read_response_json

Helper function that returns a deserialized response body of a TestRequest