Seastar
High performance C++ framework for concurrent servers
|
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 () | |
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
rs | the routes object reference |
h | the desire handler |
url | the url to match |
op | the operation type (GET by default) |
seastar::httpd::handler_registration::~handler_registration | ( | ) |
Unregisters the handler from routes with routes::drop