ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::web_server_base::internal::MiddlewareHandler Class Reference

#include <web_server_base.h>

Inheritance diagram for esphome::web_server_base::internal::MiddlewareHandler:
esphome::web_server_base::internal::AuthMiddlewareHandler

Public Member Functions

 MiddlewareHandler (AsyncWebHandler *next)
 
bool canHandle (AsyncWebServerRequest *request) override
 
void handleRequest (AsyncWebServerRequest *request) override
 
void handleUpload (AsyncWebServerRequest *request, const String &filename, size_t index, uint8_t *data, size_t len, bool final) override
 
void handleBody (AsyncWebServerRequest *request, uint8_t *data, size_t len, size_t index, size_t total) override
 
bool isRequestHandlerTrivial () override
 

Protected Attributes

AsyncWebHandler * next_
 

Detailed Description

Definition at line 22 of file web_server_base.h.

Constructor & Destructor Documentation

◆ MiddlewareHandler()

esphome::web_server_base::internal::MiddlewareHandler::MiddlewareHandler ( AsyncWebHandler *  next)
inline

Definition at line 24 of file web_server_base.h.

Member Function Documentation

◆ canHandle()

bool esphome::web_server_base::internal::MiddlewareHandler::canHandle ( AsyncWebServerRequest *  request)
inlineoverride

Definition at line 26 of file web_server_base.h.

◆ handleBody()

void esphome::web_server_base::internal::MiddlewareHandler::handleBody ( AsyncWebServerRequest *  request,
uint8_t *  data,
size_t  len,
size_t  index,
size_t  total 
)
inlineoverride

Definition at line 32 of file web_server_base.h.

◆ handleRequest()

void esphome::web_server_base::internal::MiddlewareHandler::handleRequest ( AsyncWebServerRequest *  request)
inlineoverride

Definition at line 27 of file web_server_base.h.

◆ handleUpload()

void esphome::web_server_base::internal::MiddlewareHandler::handleUpload ( AsyncWebServerRequest *  request,
const String &  filename,
size_t  index,
uint8_t *  data,
size_t  len,
bool  final 
)
inlineoverride

Definition at line 28 of file web_server_base.h.

◆ isRequestHandlerTrivial()

bool esphome::web_server_base::internal::MiddlewareHandler::isRequestHandlerTrivial ( )
inlineoverride

Definition at line 35 of file web_server_base.h.

Field Documentation

◆ next_

AsyncWebHandler* esphome::web_server_base::internal::MiddlewareHandler::next_
protected

Definition at line 38 of file web_server_base.h.


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