File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -147,9 +147,9 @@ struct TemplatedApp {
147147 return std::move (static_cast <TemplatedApp &&>(*this ));
148148 }
149149
150- /* Attaches an error handler for internal HTTP parsing errors */
151- TemplatedApp &&onHttpParsingError (MoveOnlyFunction<void (HttpRequest *, int , std::string_view)> &&errorHandler ) {
152- httpContext->onHttpParsingError (std::move (errorHandler ));
150+ /* Attaches a log handler for HTTP parsing errors */
151+ TemplatedApp &&log (MoveOnlyFunction<void (HttpRequest *, int , std::string_view)> &&logHandler ) {
152+ httpContext->log (std::move (logHandler ));
153153
154154 return std::move (static_cast <TemplatedApp &&>(*this ));
155155 }
Original file line number Diff line number Diff line change @@ -442,8 +442,8 @@ struct HttpContext {
442442 }
443443
444444 /* Register an HTTP parsing error handler */
445- void onHttpParsingError (MoveOnlyFunction<void (HttpRequest *, int , std::string_view)> &&errorHandler ) {
446- getSocketContextData ()->httpParsingErrorHandler = std::move (errorHandler );
445+ void log (MoveOnlyFunction<void (HttpRequest *, int , std::string_view)> &&logHandler ) {
446+ getSocketContextData ()->httpParsingErrorHandler = std::move (logHandler );
447447 }
448448
449449 /* Register an HTTP route handler acording to URL pattern */
You can’t perform that action at this time.
0 commit comments