Package | Description |
---|---|
okhttp3.internal.http2 |
Modifier and Type | Field and Description |
---|---|
(package private) ErrorCode |
Http2Stream.errorCode
The reason why this stream was abnormally closed.
|
ErrorCode |
StreamResetException.errorCode |
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
ErrorCode.fromHttp2(int code) |
ErrorCode |
Http2Stream.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(java.lang.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 |
---|---|
(package private) void |
Http2Connection.close(ErrorCode connectionCode,
ErrorCode streamCode,
java.io.IOException cause) |
void |
Http2Stream.close(ErrorCode rstStatusCode,
java.io.IOException errorException)
Abnormally terminate this stream.
|
private boolean |
Http2Stream.closeInternal(ErrorCode errorCode,
java.io.IOException errorException)
Returns true if this stream was closed.
|
void |
Http2Stream.closeLater(ErrorCode errorCode)
Abnormally terminate this stream.
|
void |
Http2Writer.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 |
Http2Connection.ReaderRunnable.goAway(int lastGoodStreamId,
ErrorCode errorCode,
okio.ByteString debugData) |
void |
Http2Reader.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.
|
(package private) void |
Http2Connection.pushResetLater(int streamId,
ErrorCode errorCode) |
(package private) void |
Http2Stream.receiveRstStream(ErrorCode errorCode) |
void |
Http2Writer.rstStream(int streamId,
ErrorCode errorCode) |
void |
Http2Connection.ReaderRunnable.rstStream(int streamId,
ErrorCode errorCode) |
void |
Http2Reader.Handler.rstStream(int streamId,
ErrorCode errorCode) |
void |
Http2Connection.shutdown(ErrorCode statusCode)
Degrades this connection such that new streams can neither be created locally, nor accepted
from the remote peer.
|
(package private) void |
Http2Connection.writeSynReset(int streamId,
ErrorCode statusCode) |
(package private) void |
Http2Connection.writeSynResetLater(int streamId,
ErrorCode errorCode) |
Constructor and Description |
---|
StreamResetException(ErrorCode errorCode) |