ESPHome
2024.4.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) void add_header(const char *key |
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 | 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... | |
Data Fields | |
method TemplatableValue< const char *, Ts... > | value { this->headers_.insert({key, value}) |
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_ |
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 77 of file http_request.h.
|
inline |
Definition at line 79 of file http_request.h.
|
inline |
Definition at line 86 of file http_request.h.
|
inlineprotected |
Definition at line 121 of file http_request.h.
|
inlineprotected |
Definition at line 127 of file http_request.h.
|
inlineoverridevirtual |
Implements esphome::Action< Ts... >.
Definition at line 92 of file http_request.h.
|
inline |
Definition at line 90 of file http_request.h.
|
inline |
Definition at line 88 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 | |||
) | const |
|
protected |
Definition at line 129 of file http_request.h.
|
protected |
Definition at line 130 of file http_request.h.
|
protected |
Definition at line 131 of file http_request.h.
|
protected |
Definition at line 128 of file http_request.h.
|
protected |
Definition at line 132 of file http_request.h.
method TemplatableValue<const char *, Ts...> esphome::http_request::HttpRequestSendAction< Ts >::value { this->headers_.insert({key, value}) |
Definition at line 84 of file http_request.h.