Express v1.3.3 Express.Network.HTTP2 View Source

Module with functions for establishing and working with HTTP2-connection.

Link to this section Summary

Functions

Establishes a connection for provider with either ssl_config or jwt and client which maintains the connection. Returns the connection

Gets a response from connection stream

Sends a ping via a connection

Sends an async request via a connection with headers and payload

Sends a sync request via a connection with headers and payload

Link to this section Functions

Link to this function connect(client, provider) View Source

Establishes a connection for provider with either ssl_config or jwt and client which maintains the connection. Returns the connection.

Link to this function get_response(connection, stream) View Source
get_response(pid, pid) :: {:ok, {String.t, String.t}} | any

Gets a response from connection stream

Sends a ping via a connection

Link to this function send_request(connection, headers, payload) View Source
send_request(Express.Network.HTTP2.Connection.t, list, String.t) ::
  {:ok, pid} |
  any

Sends an async request via a connection with headers and payload

Link to this function sync_request(connection, headers, payload) View Source
sync_request(Express.Network.HTTP2.Connection.t, list, String.t) :: any

Sends a sync request via a connection with headers and payload