Warning!
The version you're viewing is not the latest.
Go to the latest version
Function asyncHandleHttpRequest
Synopsis
#include <lib/inc/drogon/HttpSimpleController.h>
virtual void asyncHandleHttpRequest(const HttpRequestPtr &req, std::function< void(const HttpResponsePtr &)> &&callback)=0
Description
The function is called when a HTTP request is routed to the controller.
- Parameters
req
- The HTTP request.callback
- The callback via which a response is returned.
Mentioned in
- Getting Started / A very simple example
- Quick Start / Dynamic Site
- Controller Introduction / Controller
- Controller Introduction / Controller HttpSimpleController
- Benchmarks / Test plan and results
Source
Line 45 in lib/inc/drogon/HttpSimpleController.h.