class RecordedRequest
An HTTP request that came into the mock web server.
RecordedRequest(requestLine: String, headers: Headers, chunkSizes: List<Int>, bodySize: Long, body: Buffer, sequenceNumber: Int, socket: Socket)
An HTTP request that came into the mock web server. |
val body: Buffer
The body of this POST request. This may be truncated. |
|
val bodySize: Long
The total size of the body of this POST request (before truncation). |
|
val chunkSizes: List<Int>
The sizes of the chunks of this request's body, or an empty list if the request's body was empty or unchunked. |
|
val handshake: Handshake?
The TLS handshake of the connection that carried this request, or null if the request was received without TLS. |
|
val headers: Headers
All headers. |
|
val method: String? |
|
val path: String? |
|
val requestLine: String |
|
val requestUrl: HttpUrl? |
|
val sequenceNumber: Int
The index of this request on its HTTP connection. Since a single HTTP connection may serve multiple requests, each request is assigned its own sequence number. |
|
val tlsVersion: TlsVersion?
Returns the connection's TLS version or null if the connection doesn't use SSL. |
fun getHeader(name: String): String?
Returns the first header named name, or null if no such header exists. |
|
fun toString(): String |