# Functions
Add applies a set of middleware to a http.Handler.
AddLatency applies random latency to the request.
ErrorResponse injects error behavior based on config.
GetErrorSinkHoleDuration returns the duration used for sink-hole requests.
RateLimit applies rate-limiting to the requests.
SetErrorSinkHoleDuration sets the duration used for sink-hole requests.
# Constants
Error500ResponseEnvName is the name of the env var for specifying the probability of returning a 500 response.
ErrorSinkHoleResponseEnvName is name of the env var for specifying the probability of a sink-hole response.
ErrorXMLResponseEnvName is the name of the env var for specifying status code of 200 but with XML body.
LatencyFastRequestMaxEnvName is the name of the env var for the max latency setting of a fast request Eg: Get request.
LatencyFastRequestMinEnvName is the name of the env var for the min latency setting of a fast request Eg: Get request.
LatencySlowRequestMaxEnvName is the name of the env var for the max latency setting of a slow request Eg: Post request.
LatencySlowRequestMinEnvName is the name of the env var for the min latency setting of a slow request Eg: Post request.
RateLimitEnvName is the name of the env var for the rate limit setting.