loqui v0.4.5 Loqui.Handler behaviour View Source

Link to this section Summary

Link to this section Types

Link to this type compression() View Source
compression() :: String.t()
Link to this type encoding() View Source
encoding() :: String.t()
Link to this type options() View Source
options() :: %{
  supported_encodings: [encoding()],
  supported_compressions: [compression()]
}
Link to this type reason() View Source
reason() :: atom() | tuple()

Link to this section Callbacks

Link to this callback loqui_init(arg0, keyword) View Source
loqui_init(:ranch.transport(), keyword()) :: {:ok, options()}
Link to this callback loqui_push(any, arg1) View Source (optional)
loqui_push(any(), String.t()) :: :ok
Link to this callback loqui_request(any, arg1) View Source
loqui_request(any(), String.t()) :: any()
Link to this callback loqui_terminate(reason) View Source
loqui_terminate(reason()) :: :ok