SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::HTTPRequestHandler Class Reference

HTTP request handler storage class. More...

#include <sensesp/net/http_server.h>

Public Member Functions

 HTTPRequestHandler (uint32_t method_mask, String match_uri, std::function< esp_err_t(httpd_req_t *)> handler_func)
 
esp_err_t call (httpd_req_t *req)
 

Public Attributes

const uint32_t method_mask_
 
const String match_uri_
 

Protected Attributes

const std::function< esp_err_t(httpd_req_t *)> handler_func_
 

Detailed Description

HTTP request handler storage class.

Definition at line 40 of file http_server.h.

Constructor & Destructor Documentation

◆ HTTPRequestHandler()

sensesp::HTTPRequestHandler::HTTPRequestHandler ( uint32_t method_mask,
String match_uri,
std::function< esp_err_t(httpd_req_t *)> handler_func )
inline

Definition at line 42 of file http_server.h.

Member Function Documentation

◆ call()

esp_err_t sensesp::HTTPRequestHandler::call ( httpd_req_t * req)
inline

Definition at line 51 of file http_server.h.

Member Data Documentation

◆ handler_func_

const std::function<esp_err_t(httpd_req_t*)> sensesp::HTTPRequestHandler::handler_func_
protected

Definition at line 54 of file http_server.h.

◆ match_uri_

const String sensesp::HTTPRequestHandler::match_uri_

Definition at line 49 of file http_server.h.

◆ method_mask_

const uint32_t sensesp::HTTPRequestHandler::method_mask_

Definition at line 48 of file http_server.h.


The documentation for this class was generated from the following file: