ace v0.16.2 Ace.HTTP.Channel View Source
Reference to a single HTTP request/response exchange, within the context of a connection.
- With HTTP/2 a channel corresponds to a single stream.
- With HTTP/1.1 pipelining a single connection can support multiple channels.
The channel struct provides a normalised structure regardless of which version of the protocol is used. A channel struct also contains all information about the connection.
- TODO consider calling this exchange instead of channel.
- TODO add functions like
cleartext?
http_version?
transport_version
that pull information from socket.
Link to this section Summary
Functions
Monitor the process managing the local endpoint of the connection containing a channel
Send a list of message parts over a HTTP channel
Link to this section Types
Link to this section Functions
Monitor the process managing the local endpoint of the connection containing a channel.
Link to this function
send(channel, parts)
View Source
send(t(), [ Raxx.Request.t() | Raxx.Response.t() | Raxx.Data.t() | Raxx.Tail.t() ]) :: {:ok, t()}
Send a list of message parts over a HTTP channel.