Ankh.HTTP2.Frame.Encodable protocol (ankh v0.14.5)
Protocol for encoding and decoding frames to and from wire format
Link to this section Summary
Functions
Decodes a binary into an Ankh.HTTP2.Frame.Encodable
conforming data type
Encodes an Ankh.HTTP2.Frame.Encodable
conforming data type into an IO list
Link to this section Types
Link to this type
options()
Specs
options() :: keyword()
Encode/Decode options
Specs
t() :: any()
Data type conforming to the Ankh.HTTP2.Frame.Encodable
protocol
Link to this section Functions
Link to this function
decode(struct, binary, options \\ [])
Specs
Decodes a binary into an Ankh.HTTP2.Frame.Encodable
conforming data type
Parameters:
- data: data type conforming to the
Ankh.HTTP2.Frame.Encodable
protocol - binary: data to decode into the struct
- options: options to pass as context to the decoding function
Link to this function
encode(data, options \\ [])
Specs
Encodes an Ankh.HTTP2.Frame.Encodable
conforming data type into an IO list
Parameters:
- data: data type conforming to the
Ankh.HTTP2.Frame.Encodable
protocol - options: options to pass as context to the encoding function