Package | Description |
---|---|
com.squareup.okhttp | |
com.squareup.okhttp.internal | |
com.squareup.okhttp.internal.http | |
com.squareup.okhttp.internal.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 |
---|---|
abstract void |
Internal.connectAndSetOwner(OkHttpClient client,
Connection connection,
HttpEngine owner,
Request request) |
Response |
InternalCache.get(Request request) |
abstract Call |
Internal.newCall(OkHttpClient client,
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 |
SpdyTransport.createRequestBody(Request request,
long contentLength) |
okio.Sink |
HttpTransport.createRequestBody(Request request,
long contentLength) |
okio.Sink |
Transport.createRequestBody(Request request,
long contentLength)
Returns an output stream where the request body can be streamed.
|
static RouteSelector |
RouteSelector.get(Request request,
OkHttpClient client) |
static boolean |
CacheStrategy.isCacheable(Response response,
Request request)
Returns true if
response can be stored to later serve another
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 . |
static List<Header> |
SpdyTransport.writeNameValueBlock(Request request,
Protocol protocol,
String version)
Returns a list of alternating names and values containing a SPDY request.
|
void |
SpdyTransport.writeRequestHeaders(Request request) |
void |
HttpTransport.writeRequestHeaders(Request request)
Prepares the HTTP headers and sends them to the server.
|
void |
Transport.writeRequestHeaders(Request request)
This should update the HTTP engine's sentRequestMillis field.
|
Constructor and Description |
---|
Factory(long nowMillis,
Request request,
Response cacheResponse) |
HttpEngine(OkHttpClient client,
Request request,
boolean bufferRequestBody,
boolean callerWritesRequestBody,
boolean forWebSocket,
Connection connection,
RouteSelector routeSelector,
RetryableSink requestBodyOut,
Response priorResponse) |
Modifier and Type | Method and Description |
---|---|
Request |
WebSocket.request()
The HTTP request which initiated this web socket.
|
Modifier and Type | Method and Description |
---|---|
static WebSocket |
WebSocket.newWebSocket(OkHttpClient client,
Request request)
Prepares the
request to create a web socket at some point in the future. |
Copyright © 2015. All rights reserved.