ESPHome
2025.6.0
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
d
e
f
i
j
l
m
n
o
p
q
r
s
t
u
v
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
d
m
o
p
s
t
v
w
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
w
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Symbols
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
l
m
o
p
s
t
u
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
Loading...
Searching...
No Matches
esphome
components
http_request
http_request_arduino.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
http_request.h
"
4
5
#ifdef USE_ARDUINO
6
7
#if defined(USE_ESP32) || defined(USE_RP2040)
8
#include <HTTPClient.h>
9
#endif
10
#ifdef USE_ESP8266
11
#include <ESP8266HTTPClient.h>
12
#ifdef USE_HTTP_REQUEST_ESP8266_HTTPS
13
#include <WiFiClientSecure.h>
14
#endif
15
#endif
16
17
namespace
esphome
{
18
namespace
http_request {
19
20
class
HttpRequestArduino;
21
class
HttpContainerArduino
:
public
HttpContainer
{
22
public
:
23
int
read
(uint8_t *buf,
size_t
max_len)
override
;
24
void
end
()
override
;
25
26
protected
:
27
friend
class
HttpRequestArduino
;
28
HTTPClient
client_
{};
29
};
21
class
HttpContainerArduino
:
public
HttpContainer
{
…
};
30
31
class
HttpRequestArduino
:
public
HttpRequestComponent
{
32
protected
:
33
std::shared_ptr<HttpContainer>
perform
(std::string url, std::string method, std::string body,
34
std::list<Header> request_headers,
35
std::set<std::string> collect_headers)
override
;
36
};
31
class
HttpRequestArduino
:
public
HttpRequestComponent
{
…
};
37
38
}
// namespace http_request
39
}
// namespace esphome
40
41
#endif
// USE_ARDUINO
esphome::http_request::HttpContainerArduino
Definition
http_request_arduino.h:21
esphome::http_request::HttpContainerArduino::end
void end() override
Definition
http_request_arduino.cpp:175
esphome::http_request::HttpContainerArduino::client_
HTTPClient client_
Definition
http_request_arduino.h:28
esphome::http_request::HttpContainerArduino::read
int read(uint8_t *buf, size_t max_len) override
Definition
http_request_arduino.cpp:148
esphome::http_request::HttpContainer
Definition
http_request.h:85
esphome::http_request::HttpRequestArduino
Definition
http_request_arduino.h:31
esphome::http_request::HttpRequestArduino::perform
std::shared_ptr< HttpContainer > perform(std::string url, std::string method, std::string body, std::list< Header > request_headers, std::set< std::string > collect_headers) override
Definition
http_request_arduino.cpp:17
esphome::http_request::HttpRequestComponent
Definition
http_request.h:121
http_request.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
Generated by
1.12.0