ESPHome  2024.6.1
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:

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 21 of file web_server_base.h.

Constructor & Destructor Documentation

◆ MiddlewareHandler()

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

Definition at line 23 of file web_server_base.h.

Member Function Documentation

◆ canHandle()

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

Definition at line 25 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 

Definition at line 31 of file web_server_base.h.

◆ handleRequest()

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

Definition at line 26 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 

Definition at line 27 of file web_server_base.h.

◆ isRequestHandlerTrivial()

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

Definition at line 34 of file web_server_base.h.

Field Documentation

◆ next_

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

Definition at line 37 of file web_server_base.h.

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