Ankh.HTTP2.Frame.Registry (ankh v0.12.0)

Frame registry

Link to this section Summary

Functions

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

Link to this section Functions

Link to this function

frame_for_type(protocol, arg2)

Specs

frame_for_type(Ankh.Protocol.t(), Ankh.HTTP2.Frame.type()) ::
  {:ok, Ankh.HTTP2.Frame.t()} | {:error, :not_found}

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

Codes 0-9 are reserved for standard frame types.