- <init>
Creates a new mock response with an empty body.
- setBody
- setResponseCode
- addHeader
Adds a new header with the name and value. This may be used to add multiple
headers with the same na
- setHeader
Removes all headers named name, then adds a new header with the name and value.
- setSocketPolicy
- setBodyDelay
Set the delayed time of the response body to delay. This applies to the response
body only; response
- setStatus
- throttleBody
Throttles the request reader and response writer to sleep for the given period
after each series of
- setChunkedBody
Sets the response body to body, chunked every maxChunkSize bytes.
- setHeaders
Replaces all headers with those specified in headers.
- getSocketPolicy