ESPHome  2024.5.4
Public Member Functions | Protected Attributes
esphome::web_server_idf::AsyncResponseStream Class Reference

#include <web_server_idf.h>

Inheritance diagram for esphome::web_server_idf::AsyncResponseStream:
esphome::web_server_idf::AsyncWebServerResponse

Public Member Functions

 AsyncResponseStream (const AsyncWebServerRequest *req)
 
const char * get_content_data () const override
 
size_t get_content_size () const override
 
void print (const char *str)
 
void print (const std::string &str)
 
void print (float value)
 
void printf (const char *fmt,...) __attribute__((format(printf
 
- Public Member Functions inherited from esphome::web_server_idf::AsyncWebServerResponse
 AsyncWebServerResponse (const AsyncWebServerRequest *req)
 
virtual ~AsyncWebServerResponse ()
 
void addHeader (const char *name, const char *value)
 

Protected Attributes

std::string content_
 
- Protected Attributes inherited from esphome::web_server_idf::AsyncWebServerResponse
const AsyncWebServerRequestreq_
 

Detailed Description

Definition at line 67 of file web_server_idf.h.

Constructor & Destructor Documentation

◆ AsyncResponseStream()

esphome::web_server_idf::AsyncResponseStream::AsyncResponseStream ( const AsyncWebServerRequest req)
inline

Definition at line 69 of file web_server_idf.h.

Member Function Documentation

◆ get_content_data()

const char* esphome::web_server_idf::AsyncResponseStream::get_content_data ( ) const
inlineoverridevirtual

Implements esphome::web_server_idf::AsyncWebServerResponse.

Definition at line 71 of file web_server_idf.h.

◆ get_content_size()

size_t esphome::web_server_idf::AsyncResponseStream::get_content_size ( ) const
inlineoverridevirtual

Implements esphome::web_server_idf::AsyncWebServerResponse.

Definition at line 72 of file web_server_idf.h.

◆ print() [1/3]

void esphome::web_server_idf::AsyncResponseStream::print ( const char *  str)
inline

Definition at line 74 of file web_server_idf.h.

◆ print() [2/3]

void esphome::web_server_idf::AsyncResponseStream::print ( const std::string &  str)
inline

Definition at line 75 of file web_server_idf.h.

◆ print() [3/3]

void esphome::web_server_idf::AsyncResponseStream::print ( float  value)

Definition at line 253 of file web_server_idf.cpp.

◆ printf()

void esphome::web_server_idf::AsyncResponseStream::printf ( const char *  fmt,
  ... 
)

Definition at line 255 of file web_server_idf.cpp.

Field Documentation

◆ content_

std::string esphome::web_server_idf::AsyncResponseStream::content_
protected

Definition at line 77 of file web_server_idf.h.


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