[][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()

ResponseBuilder

Convenient ResponseBuilder that implements Responder.

Traits

Responder

Respond with an HTTP response.

Functions

cycle

Cycle through the provided list of responders.

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.