Package | Description |
---|---|
com.squareup.okhttp.internal.http |
Modifier and Type | Method and Description |
---|---|
static RawHeaders |
RawHeaders.fromBytes(InputStream in)
Parses bytes of a response header from an HTTP transport.
|
static RawHeaders |
RawHeaders.fromMultimap(Map<String,List<String>> map,
boolean response)
Creates a new instance from the given map of fields to values.
|
static RawHeaders |
RawHeaders.fromNameValueBlock(List<String> nameValueBlock)
Returns headers for a name value block containing a SPDY response.
|
RawHeaders |
RawHeaders.getAll(Set<String> fieldNames) |
RawHeaders |
ResponseHeaders.getHeaders() |
RawHeaders |
RequestHeaders.getHeaders() |
Modifier and Type | Method and Description |
---|---|
static boolean |
HttpAuthenticator.processAuthHeader(OkAuthenticator authenticator,
int responseCode,
RawHeaders responseHeaders,
RawHeaders successorRequestHeaders,
Proxy proxy,
URL url)
React to a failed authorization response by looking up new credentials.
|
static void |
RawHeaders.readHeaders(InputStream in,
RawHeaders out)
Reads headers or trailers into
out . |
void |
HttpEngine.receiveHeaders(RawHeaders headers) |
Constructor and Description |
---|
HttpEngine(OkHttpClient client,
Policy policy,
String method,
RawHeaders requestHeaders,
Connection connection,
com.squareup.okhttp.internal.http.RetryableOutputStream requestBodyOut) |
HttpsEngine(OkHttpClient client,
Policy policy,
String method,
RawHeaders requestHeaders,
Connection connection,
com.squareup.okhttp.internal.http.RetryableOutputStream requestBody) |
RawHeaders(RawHeaders copyFrom) |
RequestHeaders(URI uri,
RawHeaders headers) |
ResponseHeaders(URI uri,
RawHeaders headers) |
Copyright © 2014. All rights reserved.