|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
Common response headers for A11 HTTP servers. More...
Go to the source code of this file.
Classes | |
| struct | a11::net::CorsOptions |
| Cross-origin policy for an A11 HTTP surface. More... | |
| struct | a11::net::ServerHeaderOptions |
| The response-header policy of one A11 HTTP surface. More... | |
Namespaces | |
| namespace | a11 |
| namespace | a11::net |
Enumerations | |
| enum class | a11::net::CachePolicy { a11::net::kStream , a11::net::kVolatile , a11::net::kUnset } |
| How a response may be cached, which differs by what it is. More... | |
Functions | |
| void | a11::net::ApplyServerHeaders (const ServerHeaderOptions &options, CachePolicy cache, HttpHeaders *absl_nonnull headers) |
| Adds the headers every response from an A11 server carries. | |
| HttpHeaders | a11::net::CorsHeaders (const CorsOptions &options) |
The cross-origin headers for options, and nothing else. | |
| void | a11::net::ApplyCorsHeaders (const CorsOptions &options, HttpHeaders *absl_nonnull headers) |
Adds the cross-origin headers for options to headers. | |
| bool | a11::net::IsPreflight (const CorsOptions &options, std::string_view method) |
Whether method is a CORS preflight this policy should answer. | |
Variables | |
| constexpr std::string_view | a11::net::kServerHeaderValue = "a11" |
Value of the Server header A11's HTTP surfaces send. | |
Common response headers for A11 HTTP servers.
CORS and cache policies apply across HTTP transports. They control browser access and intermediary handling without changing response content.