ankh v0.0.5 Ankh.Frame.Encoder protocol

Protocol for encoding/decoding HTTP/2 frames from to binary

Summary

Types

t()

Struct conforming to the Ankh.Frame.Encoder protocol

Functions

Decodes a binary into a conforming struct

Encodes a conforming struct into binary

Types

t()
t :: struct

Struct conforming to the Ankh.Frame.Encoder protocol

Functions

decode!(struct, binary, options)
decode!(t, binary, Any) :: t

Decodes a binary into a conforming struct

Parameters:

  • struct: struct conforming to the Ank.Frame.Encoder protocol
  • binary: data to decode into the struct
  • options: options to pass as context to the decoding function
encode!(struct, options)
encode!(t, Any) :: binary

Encodes a conforming struct into binary

Parameters:

  • struct: struct conforming to the Ank.Frame.Encoder protocol
  • options: options to pass as context to the encoding function