[][src]Module actix_web::test

Various helpers for Actix applications to use during testing.

Structs

TestBuffer

Async io buffer

TestRequest

Test Request builder.

Functions

block_on

Runs the provided future, blocking the current thread until the future completes.

call_success

Calls service and waits for response future completion.

default_service

Create service that responds with response with specified status code

init_service

This method accepts application builder instance, and constructs service.

ok_service

Create service that always responds with HttpResponse::Ok()

run_on

Runs the provided function, with runtime enabled.