Package-level declarations

Types

Link copied to clipboard

Handler for mock server requests.

Link copied to clipboard

A scripted response to be replayed by the mock web server.

Link copied to clipboard
Link copied to clipboard

A scriptable web server. Callers supply canned responses and the server replays them upon request in sequence.

Link copied to clipboard
class PushPromise(val method: String, val path: String, val headers: Headers, val response: MockResponse)

An HTTP request initiated by the server.

Link copied to clipboard

Default dispatcher that processes a script of responses. Populate the script by calling enqueueResponse.

Link copied to clipboard
class RecordedRequest(val requestLine: String, val headers: Headers, val chunkSizes: List<Int>, val bodySize: Long, val body: Buffer, val sequenceNumber: Int, socket: Socket, val failure: IOException? = null)

An HTTP request that came into the mock web server.

Link copied to clipboard

What should be done with the incoming socket.

Link copied to clipboard

A bidirectional sequence of data frames exchanged between client and server.

Link copied to clipboard

Handles a call's stream directly. Use this instead of MockResponseBody to begin sending response data before all request data has been received.