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

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function connect(hostname, port, opts \\ []) View Source
connect(String.t(), :inet.port_number(), Keyword.t()) ::
  {:ok, t()} | {:error, term()}
Link to this function get_setting(conn, name) View Source
get_setting(t(), atom()) :: term()
Link to this function ping(conn, payload \\ :binary.copy(<<0>>, 8)) View Source
ping(t(), <<_::8>>) :: {:ok, t(), request_id()} | {:error, t(), term()}
Link to this function put_settings(conn, settings) View Source
put_settings(t(), keyword()) ::
  {:ok, t()} | {:error, t(), reason :: term()}
Link to this function request(conn, method, path, headers, body \\ nil) View Source
request(t(), String.t(), String.t(), list(), iodata() | nil | :stream) ::
  {:ok, t(), request_id()} | {:error, t(), term()}
Link to this function stream(conn, message) View Source
stream(t(), term()) ::
  {:ok, t(), [response]}
  | {:error, t(), reason :: term(), [response]}
  | :unknown
when response: term()
Link to this function stream_request_body(conn, ref, chunk) View Source
stream_request_body(t(), request_id(), iodata() | :eof) ::
  {:ok, t()} | {:error, t(), term()}