|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
The response-header policy of one A11 HTTP surface. More...
#include <cpp/a11/net/server_headers.h>
Public Member Functions | |
| absl::Status | Validate () const |
Public Attributes | |
| std::string | server = std::string(kServerHeaderValue) |
Server value; empty sends none. | |
| CorsOptions | cors |
| bool | nosniff = true |
Send X-Content-Type-Options: nosniff. | |
The response-header policy of one A11 HTTP surface.
Carried by each listener's options, so a deployment sets it once per port.
| absl::Status a11::net::ServerHeaderOptions::Validate | ( | ) | const |
| CorsOptions a11::net::ServerHeaderOptions::cors |
| bool a11::net::ServerHeaderOptions::nosniff = true |
Send X-Content-Type-Options: nosniff.
A11's replies state their own content type, so letting a client guess one can only ever be wrong.
| std::string a11::net::ServerHeaderOptions::server = std::string(kServerHeaderValue) |
Server value; empty sends none.