RESTinio
Public Member Functions | List of all members
restinio::router::easy_parser_router::impl::router_entry_t Class Referenceabstract

An interface for one entry of easy_parser-based router. More...

#include <easy_parser_router.hpp>

Inheritance diagram for restinio::router::easy_parser_router::impl::router_entry_t:
restinio::router::easy_parser_router::impl::actual_router_entry_t< Producer, Handler >

Public Member Functions

virtual ~router_entry_t ()=default
 
virtual RESTINIO_NODISCARD expected_t< request_handling_status_t, no_match_ttry_handle (const request_handle_t &req, target_path_holder_t &target_path) const =0
 An attempt to match a request against the route. More...
 

Detailed Description

An interface for one entry of easy_parser-based router.

Since
v.0.6.6

Definition at line 51 of file easy_parser_router.hpp.

Constructor & Destructor Documentation

◆ ~router_entry_t()

virtual restinio::router::easy_parser_router::impl::router_entry_t::~router_entry_t ( )
virtualdefault

Member Function Documentation

◆ try_handle()

virtual RESTINIO_NODISCARD expected_t< request_handling_status_t, no_match_t > restinio::router::easy_parser_router::impl::router_entry_t::try_handle ( const request_handle_t req,
target_path_holder_t target_path 
) const
pure virtual

An attempt to match a request against the route.

If match successed the corresponding request handler is called and its return value is returned in form of request_handling_status_t value.

If match failed then an instance of no_match_t is returned.

Implemented in restinio::router::easy_parser_router::impl::actual_router_entry_t< Producer, Handler >.


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