|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
#include "a11/net/server_headers.h"#include <string>#include <string_view>#include <absl/status/status.h>#include <absl/strings/str_cat.h>#include "a11/net/http2.h"Namespaces | |
| namespace | a11 |
| namespace | a11::net |
Functions | |
| void | a11::net::ApplyCorsHeaders (const CorsOptions &options, HttpHeaders *absl_nonnull headers) |
Adds the cross-origin headers for options to headers. | |
| HttpHeaders | a11::net::CorsHeaders (const CorsOptions &options) |
The cross-origin headers for options, and nothing else. | |
| void | a11::net::ApplyServerHeaders (const ServerHeaderOptions &options, CachePolicy cache, HttpHeaders *absl_nonnull headers) |
| Adds the headers every response from an A11 server carries. | |
| bool | a11::net::IsPreflight (const CorsOptions &options, std::string_view method) |
Whether method is a CORS preflight this policy should answer. | |