[][src]Module httptest::responders

Responder implementations.

Reponders determine how the server will respond.

Macros

cycle

a Responder that cycles through a list of responses.

Structs

Cycle

The Cycle responder returned by cycle()

FnResponder

The FnResponder responder returned by from_fn()

ResponseBuilder

Convenient ResponseBuilder that implements Responder.

Traits

Responder

Respond with an HTTP response.

Functions

cycle

Cycle through the provided list of responders.

from_fn

Respond with the response returned from the provided function.

json_encoded

respond with a body that is the json encoding of data.

status_code

respond with the provided status code and an empty body.

url_encoded

respond with a body that is the url encoding of data.