ace v0.18.4 Ace.HTTP2.Frame View Source
Basic protocol unit of HTTP/2.
All frames begin with a fixed 9-octet header followed by a variable- length payload.
+-----------------------------------------------+
| Length (24) |
+---------------+---------------+---------------+
| Type (8) | Flags (8) |
+-+-------------+---------------+-------------------------------+
|R| Stream Identifier (31) |
+=+=============================================================+
| Frame Payload (0...) ...
+---------------------------------------------------------------+
Link to this section Summary
Functions
Add padding to a frames data
Remove the padding from the payload of a frame
Transform HTTP2 frame to binary that can be transmitted over connection
Link to this section Types
Link to this type
flags()
View Source
flags()
View Source
flags() :: <<_::8>>
flags() :: <<_::8>>
Link to this type
stream_id()
View Source
stream_id()
View Source
stream_id() :: 1..31
stream_id() :: 1..31
Link to this type
t()
View Source
t()
View Source
t() ::
Ace.HTTP2.Frame.Data.t()
| Ace.HTTP2.Frame.Headers.t()
| Ace.HTTP2.Frame.Priority.t()
| Ace.HTTP2.Frame.RstStream.t()
| Ace.HTTP2.Frame.Settings.t()
| Ace.HTTP2.Frame.PushPromise.t()
| Ace.HTTP2.Frame.Ping.t()
| Ace.HTTP2.Frame.GoAway.t()
| Ace.HTTP2.Frame.WindowUpdate.t()
| Ace.HTTP2.Frame.Continuation.t()
| {:unknown_frame_type, integer()}
t() :: Ace.HTTP2.Frame.Data.t() | Ace.HTTP2.Frame.Headers.t() | Ace.HTTP2.Frame.Priority.t() | Ace.HTTP2.Frame.RstStream.t() | Ace.HTTP2.Frame.Settings.t() | Ace.HTTP2.Frame.PushPromise.t() | Ace.HTTP2.Frame.Ping.t() | Ace.HTTP2.Frame.GoAway.t() | Ace.HTTP2.Frame.WindowUpdate.t() | Ace.HTTP2.Frame.Continuation.t() | {:unknown_frame_type, integer()}
Link to this section Functions
Link to this function
decode(parsed_frame) View Source
Link to this function
pad_data(data, optional_pad_length) View Source
Add padding to a frames data
Link to this function
parse(buffer, list) View Source
Link to this function
remove_padding(arg) View Source
Remove the padding from the payload of a frame
Link to this function
serialize(http2_frame) View Source
Transform HTTP2 frame to binary that can be transmitted over connection