Seastar
High performance C++ framework for concurrent servers
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | List of all members
seastar::httpd::handler_registration Class Reference

Detailed Description

The handler_registration object facilitates registration and auto unregistration of an exact-match handler_base into routes

#include <seastar/http/routes.hh>

Public Member Functions

 handler_registration (routes &rs, handler_base &h, const sstring &url, operation_type op=GET)
 
 ~handler_registration ()
 

Constructor & Destructor Documentation

◆ handler_registration()

seastar::httpd::handler_registration::handler_registration ( routes rs,
handler_base h,
const sstring &  url,
operation_type  op = GET 
)

Registers the handler_base into routes with routes::put

Parameters
rsthe routes object reference
hthe desire handler
urlthe url to match
opthe operation type (GET by default)

◆ ~handler_registration()

seastar::httpd::handler_registration::~handler_registration ( )

Unregisters the handler from routes with routes::drop


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