Express v1.0.0 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 provided ssl_config
and client
which maintains the connection.
Returns the connection
Gets a response from connection stream
Sends a request via a connection with headers
and payload
Link to this section Functions
Link to this function
connect(client, provider, ssl_config)
View Source
connect(Express.Network.HTTP2.Client.t, atom, Express.APNS.SSLConfig.t) :: {:ok, Express.Network.HTTP2.Connection.t} | {:error, any}
Establishes a connection for provider
with provided ssl_config
and client
which maintains the connection.
Returns the connection.
Gets a response from connection stream
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 a request via a connection with headers
and payload