Module: Protocol::HTTP2

Defined in:
lib/protocol/http2/error.rb,
lib/protocol/http2/frame.rb,
lib/protocol/http2/client.rb,
lib/protocol/http2/framer.rb,
lib/protocol/http2/padded.rb,
lib/protocol/http2/server.rb,
lib/protocol/http2/stream.rb,
lib/protocol/http2/version.rb,
lib/protocol/http2/connection.rb,
lib/protocol/http2/data_frame.rb,
lib/protocol/http2/ping_frame.rb,
lib/protocol/http2/flow_control.rb,
lib/protocol/http2/goaway_frame.rb,
lib/protocol/http2/headers_frame.rb,
lib/protocol/http2/priority_frame.rb,
lib/protocol/http2/settings_frame.rb,
lib/protocol/http2/extensions/unpack.rb,
lib/protocol/http2/continuation_frame.rb,
lib/protocol/http2/push_promise_frame.rb,
lib/protocol/http2/reset_stream_frame.rb,
lib/protocol/http2/window_update_frame.rb

Defined Under Namespace

Modules: Acknowledgement, Continued, Extensions, FlowControl, Padded Classes: Client, Connection, ContinuationFrame, DataFrame, Error, FlowControlError, Frame, FrameSizeError, Framer, GoawayError, GoawayFrame, HandshakeError, HeaderError, HeadersFrame, PendingSettings, PingFrame, Priority, PriorityFrame, ProtocolError, PushPromiseFrame, ResetStreamFrame, Server, Settings, SettingsFrame, Stream, StreamClosed, StreamError, Window, WindowUpdateFrame

Constant Summary collapse

END_STREAM =
0x1
END_HEADERS =
0x4
PADDED =
0x8
PRIORITY =
0x20
MAXIMUM_ALLOWED_WINDOW_SIZE =
0x7FFFFFFF
MINIMUM_ALLOWED_FRAME_SIZE =
0x4000
MAXIMUM_ALLOWED_FRAME_SIZE =
0xFFFFFF
FRAMES =

HTTP/2 frame type mapping as defined by the spec

[
  DataFrame,
  HeadersFrame,
  PriorityFrame,
  ResetStreamFrame,
  SettingsFrame,
  PushPromiseFrame,
  PingFrame,
  GoawayFrame,
  WindowUpdateFrame,
  ContinuationFrame,
].freeze
CONNECTION_PREFACE_MAGIC =

Default connection “fast-fail” preamble string as defined by the spec.

"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n".freeze
VERSION =
"0.9.2"
ACKNOWLEDGEMENT =
0x1
VALID_WEIGHT =
(1..256)
NO_ERROR =
0
PROTOCOL_ERROR =
1
INTERNAL_ERROR =
2
FLOW_CONTROL_ERROR =
3
TIMEOUT =
4
STREAM_CLOSED =
5
FRAME_SIZE_ERROR =
6
REFUSED_STREAM =
7
CANCEL =
8
COMPRESSION_ERROR =
9
CONNECT_ERROR =
10
ENHANCE_YOUR_CALM =
11
INADEQUATE_SECURITY =
12
HTTP_1_1_REQUIRED =
13