ace v0.12.0 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 an Ace.Request from a decoded list of headers

Build an Ace.Response from a decoded list of headers

Transform a list of decoded headers to a trailers structure

Transform an Ace.Request into a generic headers list

Transform an Ace.Response into a generic headers list

Link to this section Functions

Link to this function headers_to_request(headers, end_stream) View Source

Build an Ace.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.

Link to this function headers_to_response(list, end_stream) View Source

Build an Ace.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.

Link to this function 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.

Link to this function request_to_headers(request) View Source

Transform an Ace.Request into a generic headers list.

This headers list can be encoded via Ace.HPack.

Link to this function response_to_headers(request) View Source

Transform an Ace.Response into a generic headers list.

This headers list can be encoded via Ace.HPack.