#include <userver/server/server_base.hpp>
Transport-independent HTTP server capabilities used by handlers and congestion control.
Definition at line 25 of file server_base.hpp.
Public Member Functions | |
| virtual const server::ServerConfig & | GetConfig () const =0 |
| Return immutable defaults used when constructing handler configurations. | |
| virtual std::vector< std::string > | GetCommonMiddlewares (bool is_monitor) const =0 |
| Return the common middleware pipeline for the selected endpoint. | |
| virtual bool | GetResponseHostnameDefault (bool is_monitor) const =0 |
| Return the endpoint default for the response hostname header. | |
| virtual void | AddHandler (const server::handlers::HttpHandlerBase &, engine::TaskProcessor &)=0 |
| Register a fully constructed handler. | |
| virtual void | SetRpsRatelimitStatusCode (server::http::HttpStatus status)=0 |
| Configure the main endpoint's congestion-control rejection status. | |
| virtual void | SetLimit (std::optional< size_t > new_limit)=0 |
| virtual std::size_t | GetLimitableHandlersCount () const =0 |
| virtual std::uint64_t | GetTotalRequests () const =0 |
|
pure virtual |
Register a fully constructed handler.
Implemented in server::Server.
|
pure virtual |
Return the common middleware pipeline for the selected endpoint.
Implemented in server::Server.
|
pure virtual |
Return immutable defaults used when constructing handler configurations.
Implemented in server::Server.
|
pure virtual |
Return the endpoint default for the response hostname header.
Implemented in server::Server.
|
pure virtual |
Configure the main endpoint's congestion-control rejection status.
Implemented in server::Server.