- get() - Method in class com.squareup.okhttp.mockwebserver.rule.MockWebServerRule
-
- getBody() - Method in class com.squareup.okhttp.mockwebserver.MockResponse
-
Returns the raw HTTP payload, or null if this response is streamed.
- getBody() - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
Returns the body of this POST request.
- getBodyDelayTimeMs() - Method in class com.squareup.okhttp.mockwebserver.MockResponse
-
- getBodySize() - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
Returns the total size of the body of this POST request (before
truncation).
- getChunkSizes() - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
Returns the sizes of the chunks of this request's body, or an empty list
if the request's body was empty or unchunked.
- getCookieDomain() - Method in class com.squareup.okhttp.mockwebserver.MockWebServer
-
Returns a cookie domain for this server.
- getHeader(String) - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
Returns the first header named name, or null if no such header
exists.
- getHeaders() - Method in class com.squareup.okhttp.mockwebserver.MockResponse
-
Returns the HTTP headers, such as "Content-Length: 0".
- getHeaders() - Method in class com.squareup.okhttp.mockwebserver.PushPromise
-
- getHeaders() - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
Returns all headers.
- getHeaders(String) - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
Returns the headers named name.
- getHostName() - Method in class com.squareup.okhttp.mockwebserver.MockWebServer
-
- getMethod() - Method in class com.squareup.okhttp.mockwebserver.PushPromise
-
- getMethod() - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
- getPath() - Method in class com.squareup.okhttp.mockwebserver.PushPromise
-
- getPath() - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
- getPort() - Method in class com.squareup.okhttp.mockwebserver.MockWebServer
-
- getPort() - Method in class com.squareup.okhttp.mockwebserver.rule.MockWebServerRule
-
- getPushPromises() - Method in class com.squareup.okhttp.mockwebserver.MockResponse
-
Returns the streams the server will push with this response.
- getRequestCount() - Method in class com.squareup.okhttp.mockwebserver.MockWebServer
-
Returns the number of HTTP requests received thus far by this server.
- getRequestCount() - Method in class com.squareup.okhttp.mockwebserver.rule.MockWebServerRule
-
- getRequestLine() - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
- getResponse() - Method in class com.squareup.okhttp.mockwebserver.PushPromise
-
- getSequenceNumber() - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
Returns the index of this request on its HTTP connection.
- getSocketPolicy() - Method in class com.squareup.okhttp.mockwebserver.MockResponse
-
- getSslProtocol() - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
Returns the connection's SSL protocol like TLSv1, SSLv3,
NONE or null if the connection doesn't use SSL.
- getStatus() - Method in class com.squareup.okhttp.mockwebserver.MockResponse
-
Returns the HTTP response line, such as "HTTP/1.1 200 OK".
- getThrottleBytesPerPeriod() - Method in class com.squareup.okhttp.mockwebserver.MockResponse
-
- getThrottlePeriod() - Method in class com.squareup.okhttp.mockwebserver.MockResponse
-
- getThrottleUnit() - Method in class com.squareup.okhttp.mockwebserver.MockResponse
-
- getUrl(String) - Method in class com.squareup.okhttp.mockwebserver.MockWebServer
-
Returns a URL for connecting to this server.
- getUrl(String) - Method in class com.squareup.okhttp.mockwebserver.rule.MockWebServerRule
-
- getUtf8Body() - Method in class com.squareup.okhttp.mockwebserver.RecordedRequest
-
Returns the body of this POST request decoded as a UTF-8 string.