A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::net::HttpPushedResponse Struct Reference

A response the server sent without being asked (HTTP/2 server push). More...

#include <cpp/a11/net/http2.h>

Public Attributes

std::string method
 Method of the promised request.
 
std::string scheme
 Scheme of the promised request.
 
std::string authority
 Authority of the promised request.
 
std::string path
 Path and query of the promised request.
 
HttpHeaders headers
 Header fields of the promised request.
 
std::shared_ptr< Http2ResponseStream > response
 The pushed response: its own head, body, and trailers.
 

Detailed Description

A response the server sent without being asked (HTTP/2 server push).

The PUSH_PROMISE pseudo-headers describe the request. response carries its response and is read like any other. Calling Cancel() on response resets the pushed stream and stops the transfer.

Reachable only when Http2Options::enable_push was set on the connection.

Member Data Documentation

◆ authority

std::string a11::net::HttpPushedResponse::authority

Authority of the promised request.

◆ headers

HttpHeaders a11::net::HttpPushedResponse::headers

Header fields of the promised request.

◆ method

std::string a11::net::HttpPushedResponse::method

Method of the promised request.

◆ path

std::string a11::net::HttpPushedResponse::path

Path and query of the promised request.

◆ response

std::shared_ptr<Http2ResponseStream> a11::net::HttpPushedResponse::response

The pushed response: its own head, body, and trailers.

◆ scheme

std::string a11::net::HttpPushedResponse::scheme

Scheme of the promised request.


The documentation for this struct was generated from the following file: