Package | Description |
---|---|
com.squareup.okhttp | |
com.squareup.okhttp.internal | |
com.squareup.okhttp.internal.http | |
com.squareup.okhttp.ws |
Modifier and Type | Method and Description |
---|---|
Request |
Authenticator.authenticate(Proxy proxy,
Response response)
Returns a request that includes a credential to satisfy an authentication
challenge in
response . |
Request |
Authenticator.authenticateProxy(Proxy proxy,
Response response)
Returns a request that includes a credential to satisfy an authentication
challenge made by
response . |
Request |
Request.Builder.build() |
Request |
Interceptor.Chain.request() |
Request |
Response.request()
The wire-level request that initiated this HTTP response.
|
Modifier and Type | Method and Description |
---|---|
Call |
OkHttpClient.newCall(Request request)
Prepares the
request to be executed at some point in the future. |
void |
Callback.onFailure(Request request,
IOException e)
Called when the request could not be executed due to cancellation, a
connectivity problem or timeout.
|
Response |
Interceptor.Chain.proceed(Request request) |
Response.Builder |
Response.Builder.request(Request request) |
Constructor and Description |
---|
Call(OkHttpClient client,
Request originalRequest) |
Modifier and Type | Method and Description |
---|---|
Response |
InternalCache.get(Request request) |
void |
InternalCache.remove(Request request)
Remove any cache entries for the supplied
request . |
Modifier and Type | Field and Description |
---|---|
Request |
CacheStrategy.networkRequest
The request to send on the network, or null if this call doesn't use the network.
|
Modifier and Type | Method and Description |
---|---|
Request |
AuthenticatorAdapter.authenticate(Proxy proxy,
Response response) |
Request |
AuthenticatorAdapter.authenticateProxy(Proxy proxy,
Response response) |
Request |
HttpEngine.followUpRequest()
Figures out the HTTP request to make in response to receiving this engine's
response.
|
Request |
HttpEngine.getRequest() |
static Request |
OkHeaders.processAuthHeader(Authenticator authenticator,
Response response,
Proxy proxy)
React to a failed authorization response by looking up new credentials.
|
Modifier and Type | Method and Description |
---|---|
static long |
OkHeaders.contentLength(Request request) |
okio.Sink |
Http2xStream.createRequestBody(Request request,
long contentLength) |
okio.Sink |
HttpStream.createRequestBody(Request request,
long contentLength)
Returns an output stream where the request body can be streamed.
|
okio.Sink |
Http1xStream.createRequestBody(Request request,
long contentLength) |
static List<Header> |
Http2xStream.http2HeadersList(Request request) |
static boolean |
CacheStrategy.isCacheable(Response response,
Request request)
Returns true if
response can be stored to later serve another
request. |
static List<Header> |
Http2xStream.spdy3HeadersList(Request request)
Returns a list of alternating names and values containing a SPDY request.
|
static boolean |
OkHeaders.varyMatches(Response cachedResponse,
Headers cachedRequest,
Request newRequest)
Returns true if none of the Vary headers have changed between
cachedRequest and newRequest . |
void |
Http2xStream.writeRequestHeaders(Request request) |
void |
HttpStream.writeRequestHeaders(Request request)
This should update the HTTP engine's sentRequestMillis field.
|
void |
Http1xStream.writeRequestHeaders(Request request)
Prepares the HTTP headers and sends them to the server.
|
Constructor and Description |
---|
Factory(long nowMillis,
Request request,
Response cacheResponse) |
HttpEngine(OkHttpClient client,
Request request,
boolean bufferRequestBody,
boolean callerWritesRequestBody,
boolean forWebSocket,
StreamAllocation streamAllocation,
RetryableSink requestBodyOut,
Response priorResponse) |
Modifier and Type | Method and Description |
---|---|
static WebSocketCall |
WebSocketCall.create(OkHttpClient client,
Request request)
Prepares the
request to create a web socket at some point in the future. |
Copyright © 2017. All rights reserved.