ace v0.18.9 Ace.HTTP2 View Source
Hypertext Transfer Protocol Version 2 (HTTP/2)
HTTP/2 enables a more efficient use of network resources and a reduced perception of latency by introducing header field compression and allowing multiple concurrent exchanges on the same connection. It also introduces unsolicited push of representations from servers to clients.
Quote from rfc 7540.
Link to this section Summary
Functions
Build a Raxx.Request
from a decoded list of headers.
Build a Raxx.Response
from a decoded list of headers.
Transform a list of decoded headers to a trailers structure.
Send a ping frame over an HTTP/2 connection.
Transform an Raxx.Request
into a generic headers list.
Transform a Raxx.Response
into a generic headers list.
Link to this section Functions
headers_to_request(headers, end_stream) View Source
Build a Raxx.Request
from a decoded list of headers.
Note the required pseudo-headers must be first.
Request pseudo-headers are; :scheme
, :authority
, :method
& :path
.
Duplicate or missing pseudo-headers will return an error.
headers_to_response(list, end_stream) View Source
Build a Raxx.Response
from a decoded list of headers.
Note the required pseudo-headers must be first.
Response pseudo-headers are; :status
.
Duplicate or missing pseudo-headers will return an error.
headers_to_trailers(headers) View Source
Transform a list of decoded headers to a trailers structure.
Note there are no required headers in a trailers set.
ping(connection, identifier) View Source
Send a ping frame over an HTTP/2 connection.
request_to_headers(request) View Source
Transform an Raxx.Request
into a generic headers list.
This headers list can be encoded via Ace.HPack
.
response_to_headers(request) View Source
Transform a Raxx.Response
into a generic headers list.
This headers list can be encoded via Ace.HPack
.