|
roar
|
Options that modify the server behavior for a given route. More...
#include <proto_route.hpp>
Public Attributes | |
| bool | allowUnsecure |
| If the server is an https server, setting this to true will allow unencrypted requests on this route. | |
| bool | expectUpgrade |
| Set this to true if you expect a websocket upgrade request on this route. | |
| std::optional< CorsSettings > | cors |
| Set this to provide automatically generated cors headers and preflight requests. | |
Options that modify the server behavior for a given route.
| bool Roar::RouteOptions::allowUnsecure |
If the server is an https server, setting this to true will allow unencrypted requests on this route.
| std::optional<CorsSettings> Roar::RouteOptions::cors |
Set this to provide automatically generated cors headers and preflight requests.
| bool Roar::RouteOptions::expectUpgrade |
Set this to true if you expect a websocket upgrade request on this route.