Module: HTTP2Next

Defined in:
lib/http/2/next/huffman_statemachine.rb,
lib/http/2/next/error.rb,
lib/http/2/next/buffer.rb,
lib/http/2/next/client.rb,
lib/http/2/next/framer.rb,
lib/http/2/next/server.rb,
lib/http/2/next/stream.rb,
lib/http/2/next/emitter.rb,
lib/http/2/next/huffman.rb,
lib/http/2/next/version.rb,
lib/http/2/next/compressor.rb,
lib/http/2/next/connection.rb,
lib/http/2/next/flow_buffer.rb

Overview

The following task generates this file.

rake generate_huffman_table

Defined Under Namespace

Modules: Emitter, Error, FlowBuffer, Header Classes: Buffer, Client, Connection, Framer, Server, Stream

Constant Summary collapse

VERSION =
"0.1.0"
DEFAULT_FLOW_WINDOW =

Default connection and stream flow control window (64KB).

65_535
DEFAULT_HEADER_SIZE =

Default header table size

4096
DEFAULT_MAX_CONCURRENT_STREAMS =

Default stream_limit

100
SPEC_DEFAULT_CONNECTION_SETTINGS =

Default values for SETTINGS frame, as defined by the spec.

{
  settings_header_table_size: 4096,
  settings_enable_push: 1, # enabled for servers
  settings_max_concurrent_streams: Framer::MAX_STREAM_ID, # unlimited
  settings_initial_window_size: 65_535,
  settings_max_frame_size: 16_384,
  settings_max_header_list_size: 2**31 - 1 # unlimited
}.freeze
DEFAULT_CONNECTION_SETTINGS =
{
  settings_header_table_size: 4096,
  settings_enable_push: 1, # enabled for servers
  settings_max_concurrent_streams: 100,
  settings_initial_window_size: 65_535,
  settings_max_frame_size: 16_384,
  settings_max_header_list_size: 2**31 - 1 # unlimited
}.freeze
DEFAULT_WEIGHT =

Default stream priority (lower values are higher priority).

16
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"