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

A proper Route is built up from this object. This object is usually created internally. More...

#include <proto_route.hpp>

Collaboration diagram for Roar::ProtoRoute:

Public Attributes

std::variant< std::string, std::regex, Detail::ServedPathpath
 
std::function< void(Session &session, Request< boost::beast::http::empty_body > &&req)> callRoute
 
std::function< bool(std::string const &, std::vector< std::string > &)> matches
 
RouteOptions routeOptions
 

Detailed Description

A proper Route is built up from this object. This object is usually created internally.

Member Data Documentation

◆ callRoute

std::function<void(Session& session, Request<boost::beast::http::empty_body>&& req)> Roar::ProtoRoute::callRoute

◆ matches

std::function<bool(std::string const&, std::vector<std::string>&)> Roar::ProtoRoute::matches

◆ path

std::variant<std::string, std::regex, Detail::ServedPath> Roar::ProtoRoute::path

◆ routeOptions

RouteOptions Roar::ProtoRoute::routeOptions

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