[][src]Module izanami::test

Utilities for testing HTTP services.

Re-exports

pub use self::input::Input;
pub use self::input::MockRequestBody;

Modules

input

Structs

Client

A type that simulates an established connection with a client.

Output

A type representing a received HTTP message data from the server.

Server

A type that simulates an HTTP server without using the low-level I/O.

Traits

ResponseExt

A set of extension methods of Response used within test cases.

Runtime

A trait that represents the runtime for executing asynchronous processes within the specified MakeService.

Functions

local_server

Creates a test server that exexutes all task onto a single thread, using the specified service factory.

server

Creates a test server using the specified service factory.