[][src]Module tsukuyomi_server::test

Utilities for testing HTTP services.

Structs

Output

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

Server

A test server which emulates an HTTP service without using the low-level I/O.

Session

A type which manages a series of requests.

Traits

Input

A trait representing the input to the test server.

IntoRequestBody
ResponseExt

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

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.