Package | Description |
---|---|
com.squareup.okhttp.internal.http | |
com.squareup.okhttp.internal.spdy |
Modifier and Type | Method and Description |
---|---|
static List<Header> |
SpdyTransport.writeNameValueBlock(Request request,
Protocol protocol,
String version)
Returns a list of alternating names and values containing a SPDY request.
|
Modifier and Type | Method and Description |
---|---|
static Response.Builder |
SpdyTransport.readNameValueBlock(List<Header> headerBlock,
Protocol protocol)
Returns headers for a name value block containing a SPDY response.
|
Modifier and Type | Method and Description |
---|---|
List<Header> |
SpdyStream.getRequestHeaders() |
List<Header> |
SpdyStream.getResponseHeaders()
Returns the stream's response headers, blocking if necessary if they
have not been received yet.
|
Modifier and Type | Method and Description |
---|---|
void |
FrameReader.Handler.headers(boolean outFinished,
boolean inFinished,
int streamId,
int associatedStreamId,
List<Header> headerBlock,
HeadersMode headersMode)
Create or update incoming headers, creating the corresponding streams
if necessary.
|
void |
FrameWriter.headers(int streamId,
List<Header> headerBlock) |
SpdyStream |
SpdyConnection.newStream(List<Header> requestHeaders,
boolean out,
boolean in)
Returns a new locally-initiated stream.
|
boolean |
PushObserver.onHeaders(int streamId,
List<Header> responseHeaders,
boolean last)
The response headers corresponding to a pushed request.
|
boolean |
PushObserver.onRequest(int streamId,
List<Header> requestHeaders)
Describes the request that the server intends to push a response for.
|
void |
FrameReader.Handler.pushPromise(int streamId,
int promisedStreamId,
List<Header> requestHeaders)
HTTP/2 only.
|
void |
FrameWriter.pushPromise(int streamId,
int promisedStreamId,
List<Header> requestHeaders)
HTTP/2 only.
|
SpdyStream |
SpdyConnection.pushStream(int associatedStreamId,
List<Header> requestHeaders,
boolean out)
Returns a new server-initiated stream.
|
void |
SpdyStream.reply(List<Header> responseHeaders,
boolean out)
Sends a reply to an incoming stream.
|
void |
FrameWriter.synReply(boolean outFinished,
int streamId,
List<Header> headerBlock) |
void |
FrameWriter.synStream(boolean outFinished,
boolean inFinished,
int streamId,
int associatedStreamId,
List<Header> headerBlock) |
Copyright © 2015. All rights reserved.