roar
Loading...
Searching...
No Matches
Public Attributes | List of all members
Roar::RouteOptions Struct Reference

Options that modify the server behavior for a given route. More...

#include <proto_route.hpp>

Collaboration diagram for Roar::RouteOptions:

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< CorsSettingscors
 Set this to provide automatically generated cors headers and preflight requests.
 

Detailed Description

Options that modify the server behavior for a given route.

Member Data Documentation

◆ allowUnsecure

bool Roar::RouteOptions::allowUnsecure

If the server is an https server, setting this to true will allow unencrypted requests on this route.

◆ cors

std::optional<CorsSettings> Roar::RouteOptions::cors

Set this to provide automatically generated cors headers and preflight requests.

◆ expectUpgrade

bool Roar::RouteOptions::expectUpgrade

Set this to true if you expect a websocket upgrade request on this route.


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