HTTP2
Constants
VERSION = "1.0.0-rc.1"
Class methods
abort_stream_quietly(stream : Stream, error : Exception, error_code : ErrorCode = ErrorCode::CANCEL) : Nil
Aborts stream with error, swallowing the Connection::InvalidStateError
Stream#abort raises when the stream already reached a terminal state
before this call — the ordinary outcome of losing a race against the
stream's own natural close, not a failure the caller needs to see.
Any OTHER exception #abort raises is a genuine failure and still
propagates. Shared by Client and Response, which both abort a
stream from several different error-handling paths and previously
each hand-rolled this same rescue.
:nodoc:
Nested types
- HTTP2::Cancellation
- HTTP2::Client
- HTTP2::Connection
- HTTP2::DecodedHeaderField
- HTTP2::ErrorCode
- HTTP2::ErrorScope
- HTTP2::Frame
- HTTP2::FrameHeader
- HTTP2::FrameSizeError
- HTTP2::Frames
- HTTP2::HTTPError
- HTTP2::HTTPSemantics
- HTTP2::Header
- HTTP2::HeaderField
- HTTP2::Headers
- HTTP2::InformationalResponse
- HTTP2::InvalidRequestError
- HTTP2::MalformedResponseError
- HTTP2::ProtocolError
- HTTP2::Request
- HTTP2::RequestCanceledError
- HTTP2::RequestTimeoutError
- HTTP2::Response
- HTTP2::ResponseValidator
- HTTP2::Stream
- HTTP2::StreamBody
- HTTP2::StreamEvent