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

Source

Line 45 in lib/inc/drogon/HttpSimpleController.h.






Add Discussion as Guest

Log in to DocsForge