xclient v0.6.0-vendored-xhttp XHTTP2.Frame View Source

Link to this section Summary

Link to this section Functions

Link to this macro continuation(args \\ []) View Source (macro)
Link to this macro continuation(record, args) View Source (macro)
Link to this macro data(args \\ []) View Source (macro)
Link to this macro data(record, args) View Source (macro)
Link to this function decode_next(bin, max_frame_size \\ 16384) View Source

Decodes the next frame of the given binary.

Returns {:ok, frame, rest} if successful, {:error, reason} if not.

Encodes the given frame.

Link to this function encode_raw(type, flags, stream_id, payload) View Source
Link to this function flag_set?(flags, frame_name, flag_name) View Source
flag_set?(byte(), :continuation, :end_headers) :: boolean()
flag_set?(byte(), :data, :padded | :end_stream) :: boolean()
flag_set?(byte(), :headers, :priority | :padded | :end_headers | :end_stream) ::
  boolean()
flag_set?(byte(), :ping, :ack) :: boolean()
flag_set?(byte(), :push_promise, :padded | :end_headers) :: boolean()
flag_set?(byte(), :settings, :ack) :: boolean()
Link to this macro goaway(args \\ []) View Source (macro)
Link to this macro goaway(record, args) View Source (macro)
Link to this macro headers(args \\ []) View Source (macro)
Link to this macro headers(record, args) View Source (macro)
Link to this macro ping(args \\ []) View Source (macro)
Link to this macro ping(record, args) View Source (macro)
Link to this macro priority(args \\ []) View Source (macro)
Link to this macro priority(record, args) View Source (macro)
Link to this macro push_promise(args \\ []) View Source (macro)
Link to this macro push_promise(record, args) View Source (macro)
Link to this macro rst_stream(args \\ []) View Source (macro)
Link to this macro rst_stream(record, args) View Source (macro)
Link to this function set_flag(frame_name, flag_name) View Source
set_flag(:continuation, :end_headers) :: byte()
set_flag(:data, :padded | :end_stream) :: byte()
set_flag(:headers, :priority | :padded | :end_headers | :end_stream) :: byte()
set_flag(:ping, :ack) :: byte()
set_flag(:push_promise, :padded | :end_headers) :: byte()
set_flag(:settings, :ack) :: byte()
Link to this function set_flag(flags, frame_name, flag_name) View Source
set_flag(byte(), :continuation, :end_headers) :: byte()
set_flag(byte(), :data, :padded | :end_stream) :: byte()
set_flag(byte(), :headers, :priority | :padded | :end_headers | :end_stream) ::
  byte()
set_flag(byte(), :ping, :ack) :: byte()
set_flag(byte(), :push_promise, :padded | :end_headers) :: byte()
set_flag(byte(), :settings, :ack) :: byte()
Link to this function set_flags(frame_name, flags_to_set) View Source
Link to this function set_flags(initial_flags, frame_name, flags_to_set) View Source
Link to this macro settings(args \\ []) View Source (macro)
Link to this macro settings(record, args) View Source (macro)
Link to this macro window_update(args \\ []) View Source (macro)
Link to this macro window_update(record, args) View Source (macro)