Package | Description |
---|---|
com.squareup.okhttp.internal.framed |
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
ErrorCode.fromHttp2(int code) |
static ErrorCode |
ErrorCode.fromSpdy3Rst(int code) |
static ErrorCode |
ErrorCode.fromSpdyGoAway(int code) |
ErrorCode |
FramedStream.getErrorCode()
Returns the reason why this stream was closed, or null if it closed
normally or has not yet been closed.
|
static ErrorCode |
ErrorCode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
ErrorCode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
FramedStream.close(ErrorCode rstStatusCode)
Abnormally terminate this stream.
|
void |
FramedStream.closeLater(ErrorCode errorCode)
Abnormally terminate this stream.
|
void |
FrameWriter.goAway(int lastGoodStreamId,
ErrorCode errorCode,
byte[] debugData)
Tell the peer to stop creating streams and that we last processed
lastGoodStreamId , or zero if no streams were processed. |
void |
FrameReader.Handler.goAway(int lastGoodStreamId,
ErrorCode errorCode,
okio.ByteString debugData)
The peer tells us to stop creating streams.
|
void |
PushObserver.onReset(int streamId,
ErrorCode errorCode)
Indicates the reason why this stream was canceled.
|
void |
FrameWriter.rstStream(int streamId,
ErrorCode errorCode) |
void |
FrameReader.Handler.rstStream(int streamId,
ErrorCode errorCode) |
void |
FramedConnection.shutdown(ErrorCode statusCode)
Degrades this connection such that new streams can neither be created
locally, nor accepted from the remote peer.
|
Copyright © 2017. All rights reserved.