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, ssl_config)
View Source
connect(Express.Network.HTTP2.Client.t, atom, Express.APNS.SSLConfig.t | String.t) :: {:ok, Express.Network.HTTP2.Connection.t} | {:error, any}
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
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