ESPHome
2024.11.0
|
#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 | register_error_trigger (Trigger<> *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_ {} |
std::vector< Trigger<> * > | error_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 144 of file http_request.h.
|
inline |
Definition at line 146 of file http_request.h.
|
inline |
Definition at line 152 of file http_request.h.
|
inline |
Definition at line 154 of file http_request.h.
|
inlineprotected |
Definition at line 233 of file http_request.h.
|
inlineprotected |
Definition at line 239 of file http_request.h.
|
inlineoverridevirtual |
Implements esphome::Action< Ts... >.
Definition at line 166 of file http_request.h.
|
inline |
Definition at line 160 of file http_request.h.
|
inline |
Definition at line 158 of file http_request.h.
|
inline |
Definition at line 156 of file http_request.h.
|
inline |
Definition at line 162 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 245 of file http_request.h.
|
protected |
Definition at line 241 of file http_request.h.
|
protected |
Definition at line 242 of file http_request.h.
|
protected |
Definition at line 243 of file http_request.h.
|
protected |
Definition at line 247 of file http_request.h.
|
protected |
Definition at line 240 of file http_request.h.
|
protected |
Definition at line 244 of file http_request.h.