HTTP2::Frame
A passive HTTP/2 wire frame. Protocol and HPACK state belong to the connection layer, not frame values.
Constructors
new
SourceClass methods
Instance methods
data
Sourceheader
Sourceinitialize
Sourcepayload
payload is borrowed, not owned: constructing a frame from a String
takes String#to_slice as-is (a view over the string's own immutable
backing storage -- Crystal strings are never mutated in place, so no
defensive copy is needed), and constructing one from Bytes has never
copied either. Callers that hand a frame a mutable buffer must not
mutate it afterward.
stream_id
Sourcetype_code
Source