ESPHome  2024.11.1
Public Member Functions | Protected Attributes
esphome::web_server_base::internal::AuthMiddlewareHandler Class Reference

#include <web_server_base.h>

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

Public Member Functions

 AuthMiddlewareHandler (AsyncWebHandler *next, Credentials *credentials)
 
bool check_auth (AsyncWebServerRequest *request)
 
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
 
- Public Member Functions inherited from esphome::web_server_base::internal::MiddlewareHandler
 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

Credentialscredentials_
 
- Protected Attributes inherited from esphome::web_server_base::internal::MiddlewareHandler
AsyncWebHandler * next_
 

Detailed Description

Definition at line 46 of file web_server_base.h.

Constructor & Destructor Documentation

◆ AuthMiddlewareHandler()

esphome::web_server_base::internal::AuthMiddlewareHandler::AuthMiddlewareHandler ( AsyncWebHandler *  next,
Credentials credentials 
)
inline

Definition at line 48 of file web_server_base.h.

Member Function Documentation

◆ check_auth()

bool esphome::web_server_base::internal::AuthMiddlewareHandler::check_auth ( AsyncWebServerRequest *  request)
inline

Definition at line 51 of file web_server_base.h.

◆ handleBody()

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

Definition at line 70 of file web_server_base.h.

◆ handleRequest()

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

Definition at line 59 of file web_server_base.h.

◆ handleUpload()

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

Definition at line 64 of file web_server_base.h.

Field Documentation

◆ credentials_

Credentials* esphome::web_server_base::internal::AuthMiddlewareHandler::credentials_
protected

Definition at line 77 of file web_server_base.h.


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