roar
Loading...
Searching...
No Matches
Public Attributes | List of all members
Roar::RouteInfo< RequestListenerT > Struct Template Reference

This class is what is used in ROAR_GET, ROAR_PUT, ... requests All options you can set for routes behind these macros are part of this object. More...

#include <request_listener.hpp>

Collaboration diagram for Roar::RouteInfo< RequestListenerT >:

Public Attributes

std::optional< boost::beast::http::verb > verb = std::nullopt
 What verb for this route?
 
RoutePathType pathType = RoutePathType::RegularString
 Is the path a string or a regex, ...?
 
HandlerType< RequestListenerT > handler = nullptr
 Set automatically by the macro.
 

Detailed Description

template<typename RequestListenerT>
struct Roar::RouteInfo< RequestListenerT >

This class is what is used in ROAR_GET, ROAR_PUT, ... requests All options you can set for routes behind these macros are part of this object.

Template Parameters
RequestListenerTThe request listener class that the route belongs to.

Member Data Documentation

◆ handler

template<typename RequestListenerT >
HandlerType<RequestListenerT> Roar::RouteInfo< RequestListenerT >::handler = nullptr

Set automatically by the macro.

◆ pathType

template<typename RequestListenerT >
RoutePathType Roar::RouteInfo< RequestListenerT >::pathType = RoutePathType::RegularString

Is the path a string or a regex, ...?

◆ verb

template<typename RequestListenerT >
std::optional<boost::beast::http::verb> Roar::RouteInfo< RequestListenerT >::verb = std::nullopt

What verb for this route?


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