Class router

A URL router.

Synopsis

Declared in header <router.hpp>

template<class T>
class router;

Member Functions

Name

Description

find

Match URL path to corresponding resource

insert

Route the specified URL path to a resource

router

Constructor

Description

This container matches static and dynamic URL requests to an object which represents how the it should be handled. These values are usually callback functions.

Exception Safety

  • Functions marked noexcept provide the no-throw guarantee, otherwise:

  • Functions which throw offer the strong exception safety guarantee.