Uses of Enum Class
org.miaixz.bus.http.metric.http.Http2ErrorCode
Packages that use Http2ErrorCode
Package
Description
Provides the internal implementation of the HTTP/1.1 and HTTP/2 protocols.
-
Uses of Http2ErrorCode in org.miaixz.bus.http.metric.http
Fields in org.miaixz.bus.http.metric.http declared as Http2ErrorCodeModifier and TypeFieldDescriptionfinal Http2ErrorCodeStreamException.errorCodeThe error code that prompted this exception.Methods in org.miaixz.bus.http.metric.http that return Http2ErrorCodeModifier and TypeMethodDescriptionstatic Http2ErrorCodeHttp2ErrorCode.fromHttp2(int code) Returns theHttp2ErrorCodecorresponding to the given HTTP/2 code.Http2Stream.getErrorCode()Returns the reason why this stream was closed, or null if it closed normally or has not yet been closed.static Http2ErrorCodeReturns the enum constant of this class with the specified name.static Http2ErrorCode[]Http2ErrorCode.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.miaixz.bus.http.metric.http with parameters of type Http2ErrorCodeModifier and TypeMethodDescriptionvoidHttp2Stream.close(Http2ErrorCode rstStatusCode, IOException errorException) Abnormally terminate this stream.voidHttp2Stream.closeLater(Http2ErrorCode errorCode) Abnormally terminate this stream.voidHttp2Writer.goAway(int lastGoodStreamId, Http2ErrorCode errorCode, byte[] debugData) Informs the peer to stop creating streams.voidPushObserver.onReset(int streamId, Http2ErrorCode errorCode) Indicates the reason why this stream was canceled.voidHttp2Writer.rstStream(int streamId, Http2ErrorCode errorCode) Sends a RST_STREAM frame to terminate a stream.voidHttp2Connection.shutdown(Http2ErrorCode statusCode) Degrades this connection such that new streams can neither be created locally, nor accepted from the remote peer.Constructors in org.miaixz.bus.http.metric.http with parameters of type Http2ErrorCodeModifierConstructorDescriptionStreamException(Http2ErrorCode errorCode) Constructs a newStreamExceptionwith the specified error code.