Handler that returns HTTP 200 if file exist and returns file data with mapped content/type.
More...
Handler that returns HTTP 200 if file exist and returns file data with mapped content/type.
Dynamic config
Userver HTTP Handlers.
Static options:
Inherits all the options from server::handlers::HttpHandlerBase and adds the following ones:
Name | Description | Default value |
fs-cache-component | Name of the FsCache component | fs-cache-component |
Example usage:
int main(int argc, char* argv[]) {
const auto component_list =
.Append<server::handlers::HttpHandlerStatic>();
}
Definition at line 41 of file http_handler_static.hpp.