ESPHome
2024.10.2
|
#include <http_request.h>
Public Member Functions | |
HttpRequestSendAction (HttpRequestComponent *parent) | |
TEMPLATABLE_VALUE (std::string, url) TEMPLATABLE_VALUE(const char * | |
method | TEMPLATABLE_VALUE (std::string, body) TEMPLATABLE_VALUE(bool |
method capture_response void | add_header (const char *key, TemplatableValue< const char *, Ts... > value) |
void | add_json (const char *key, TemplatableValue< std::string, Ts... > value) |
void | set_json (std::function< void(Ts..., JsonObject)> json_func) |
void | register_response_trigger (HttpRequestResponseTrigger *trigger) |
void | set_max_response_buffer_size (size_t max_response_buffer_size) |
void | play (Ts... x) override |
Public Member Functions inherited from esphome::Action< Ts... > | |
virtual void | play_complex (Ts... x) |
virtual void | stop_complex () |
virtual bool | is_running () |
Check if this or any of the following actions are currently running. More... | |
int | num_running_total () |
The total number of actions that are currently running in this plus any of the following actions in the chain. More... | |
Protected Member Functions | |
void | encode_json_ (Ts... x, JsonObject root) |
void | encode_json_func_ (Ts... x, JsonObject root) |
Protected Member Functions inherited from esphome::Action< Ts... > | |
void | play_next_ (Ts... x) |
void | play_next_tuple_ (const std::tuple< Ts... > &tuple, seq< S... >) |
void | play_next_tuple_ (const std::tuple< Ts... > &tuple) |
virtual void | stop () |
void | stop_next_ () |
bool | is_running_next_ () |
Protected Attributes | |
HttpRequestComponent * | parent_ |
std::map< const char *, TemplatableValue< const char *, Ts... > > | headers_ {} |
std::map< const char *, TemplatableValue< std::string, Ts... > > | json_ {} |
std::function< void(Ts..., JsonObject)> | json_func_ {nullptr} |
std::vector< HttpRequestResponseTrigger * > | response_triggers_ |
size_t | max_response_buffer_size_ {SIZE_MAX} |
Protected Attributes inherited from esphome::Action< Ts... > | |
friend | ActionList< Ts... > |
Action< Ts... > * | next_ |
int | num_running_ |
The number of instances of this sequence in the list of actions that is currently being executed. More... | |
Definition at line 87 of file http_request.h.
|
inline |
Definition at line 89 of file http_request.h.
|
inline |
Definition at line 95 of file http_request.h.
|
inline |
Definition at line 97 of file http_request.h.
|
inlineprotected |
Definition at line 172 of file http_request.h.
|
inlineprotected |
Definition at line 178 of file http_request.h.
|
inlineoverridevirtual |
Implements esphome::Action< Ts... >.
Definition at line 107 of file http_request.h.
|
inline |
Definition at line 101 of file http_request.h.
|
inline |
Definition at line 99 of file http_request.h.
|
inline |
Definition at line 103 of file http_request.h.
esphome::http_request::HttpRequestSendAction< Ts >::TEMPLATABLE_VALUE | ( | std::string | , |
url | |||
) | const |
method esphome::http_request::HttpRequestSendAction< Ts >::TEMPLATABLE_VALUE | ( | std::string | , |
body | |||
) |
|
protected |
Definition at line 180 of file http_request.h.
|
protected |
Definition at line 181 of file http_request.h.
|
protected |
Definition at line 182 of file http_request.h.
|
protected |
Definition at line 185 of file http_request.h.
|
protected |
Definition at line 179 of file http_request.h.
|
protected |
Definition at line 183 of file http_request.h.