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

JsonEncoded

The JsonEncoded responder returned by json_encoded()

StatusCode

The StatusCode responder returned by status_code()

UrlEncoded

The UrlEncoded responder returned by url_encoded()

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.

url_encoded

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