ESPHome  2024.8.3
Public Member Functions | Protected Attributes
esphome::http_request::HttpContainerIDF Class Reference

#include <http_request_idf.h>

Inheritance diagram for esphome::http_request::HttpContainerIDF:
esphome::http_request::HttpContainer esphome::Parented< HttpRequestComponent >

Public Member Functions

 HttpContainerIDF (esp_http_client_handle_t client)
 
int read (uint8_t *buf, size_t max_len) override
 
void end () override
 
- Public Member Functions inherited from esphome::http_request::HttpContainer
virtual ~HttpContainer ()=default
 
void set_secure (bool secure)
 
size_t get_bytes_read () const
 
- Public Member Functions inherited from esphome::Parented< HttpRequestComponent >
 Parented ()
 
 Parented (HttpRequestComponent *parent)
 
HttpRequestComponent * get_parent () const
 Get the parent of this object. More...
 
void set_parent (HttpRequestComponent *parent)
 Set the parent of this object. More...
 

Protected Attributes

esp_http_client_handle_t client_
 
- Protected Attributes inherited from esphome::http_request::HttpContainer
size_t bytes_read_ {0}
 
bool secure_ {false}
 
- Protected Attributes inherited from esphome::Parented< HttpRequestComponent >
HttpRequestComponent * parent_
 

Additional Inherited Members

- Data Fields inherited from esphome::http_request::HttpContainer
size_t content_length
 
int status_code
 
uint32_t duration_ms
 

Detailed Description

Definition at line 15 of file http_request_idf.h.

Constructor & Destructor Documentation

◆ HttpContainerIDF()

esphome::http_request::HttpContainerIDF::HttpContainerIDF ( esp_http_client_handle_t  client)
inline

Definition at line 17 of file http_request_idf.h.

Member Function Documentation

◆ end()

void esphome::http_request::HttpContainerIDF::end ( )
overridevirtual

Implements esphome::http_request::HttpContainer.

Definition at line 199 of file http_request_idf.cpp.

◆ read()

int esphome::http_request::HttpContainerIDF::read ( uint8_t *  buf,
size_t  max_len 
)
overridevirtual

Implements esphome::http_request::HttpContainer.

Definition at line 179 of file http_request_idf.cpp.

Field Documentation

◆ client_

esp_http_client_handle_t esphome::http_request::HttpContainerIDF::client_
protected

Definition at line 22 of file http_request_idf.h.


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