module

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:

Source

Nested types