ankh v0.4.6 Ankh.Frame.Registry

Frame registry

Link to this section Summary

Functions

Returns frame struct for the given HTTP/2 frame type code

Registers a custom Frame struct for the given HTTP/2 frame type code

Link to this section Functions

Link to this function frame_for_type(connection, type)
frame_for_type(Ankh.Connection.connection() | nil, integer()) ::
  Ankh.Frame.t() | nil

Returns frame struct for the given HTTP/2 frame type code

Codes 0-9 are reserved for standard frame types.

Link to this function register(connection, type, frame)
register(URI.t(), integer(), Ankh.Frame.t()) :: :ok

Registers a custom Frame struct for the given HTTP/2 frame type code

Codes 0-9 are reserved for standard frame types.