Module: HTTP2Next
- Defined in:
- lib/http/2/next/header/huffman_statemachine.rb,
lib/http/2/next/error.rb,
lib/http/2/next/base64.rb,
lib/http/2/next/client.rb,
lib/http/2/next/framer.rb,
lib/http/2/next/header.rb,
lib/http/2/next/server.rb,
lib/http/2/next/stream.rb,
lib/http/2/next/emitter.rb,
lib/http/2/next/version.rb,
lib/http/2/next/connection.rb,
lib/http/2/next/extensions.rb,
lib/http/2/next/flow_buffer.rb,
lib/http/2/next/header/huffman.rb,
lib/http/2/next/header/compressor.rb,
lib/http/2/next/header/decompressor.rb,
lib/http/2/next/header/encoding_context.rb
Overview
The following task generates this file.
rake generate_huffman_table
Defined Under Namespace
Modules: Base64, Emitter, Error, FlowBuffer, Header, PackingExtensions, StringExtensions Classes: Client, Connection, FrameBuffer, Framer, Server, Stream
Constant Summary collapse
- VERSION =
"1.0.3"- 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 << 30) - 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 << 30) - 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"- REQUEST_MANDATORY_HEADERS =
%w[:scheme :method :authority :path].freeze
- RESPONSE_MANDATORY_HEADERS =
%w[:status].freeze
Instance Method Summary collapse
Instance Method Details
#urlsafe_decode64(str) ⇒ Object
35 36 37 38 39 40 41 42 43 |
# File 'lib/http/2/next/base64.rb', line 35 def urlsafe_decode64(str) if !str.end_with?("=") && str.length % 4 != 0 str = str.ljust((str.length + 3) & ~3, "=") str.tr!("-_", "+/") else str = str.tr("-_", "+/") end strict_decode64(str) end |