Typedef axr::sdk::net::RequestHandler

Typedef Documentation

typedef std::function<HandlerReturnType(const IHttpRequest &Request, const IHttpResponse &Response)> axr::sdk::net::RequestHandler

Defines an HTTP request handler function. Request handlers can be registered globally and executed for every incoming HTTP request or be bound to specific endpoints.

Param Request

The incoming HTTP request to process.

Param Response

The outgoing HTTP response to send to the client.