38 lines
643 B
C++
38 lines
643 B
C++
#ifndef seafire__routing__endpoint_hxx_
|
|
#define seafire__routing__endpoint_hxx_
|
|
|
|
#include <seafire/server/request-handler.hxx>
|
|
|
|
#include <ostream>
|
|
#include <string>
|
|
|
|
namespace seafire::routing
|
|
{
|
|
|
|
class endpoint_t
|
|
{
|
|
public:
|
|
endpoint_t(std::string, server::request_handler_t);
|
|
|
|
std::string const&
|
|
pattern() const;
|
|
|
|
server::request_handler_t const&
|
|
handler() const;
|
|
|
|
private:
|
|
std::string pattern_;
|
|
server::request_handler_t handler_;
|
|
|
|
};
|
|
|
|
std::ostream&
|
|
to_stream(std::ostream&, endpoint_t const&);
|
|
|
|
std::ostream&
|
|
operator<<(std::ostream&, endpoint_t const&);
|
|
|
|
} // namespace seafire::routing
|
|
|
|
#endif
|