|
ESPHome 2025.12.0-dev
|
#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_request_header (const char *key, TemplatableValue< const char *, Ts... > value) |
| void | add_collect_header (const char *value) |
| void | add_json (const char *key, TemplatableValue< std::string, Ts... > value) |
| void | set_json (std::function< void(Ts..., JsonObject)> json_func) |
| Trigger< std::shared_ptr< HttpContainer >, std::string &, Ts... > * | get_success_trigger_with_response () const |
| Trigger< std::shared_ptr< HttpContainer >, Ts... > * | get_success_trigger () const |
| Trigger< Ts... > * | get_error_trigger () const |
| void | set_max_response_buffer_size (size_t max_response_buffer_size) |
| void | play (const Ts &...x) override |
Public Member Functions inherited from esphome::Action< Ts... > | |
| virtual void | play_complex (const Ts &...x) |
| virtual void | stop_complex () |
| virtual bool | is_running () |
| Check if this or any of the following actions are currently running. | |
| int | num_running_total () |
| The total number of actions that are currently running in this plus any of the following actions in the chain. | |
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_ (const 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... > > | request_headers_ {} |
| std::set< std::string > | collect_headers_ {"content-type", "content-length"} |
| std::map< const char *, TemplatableValue< std::string, Ts... > > | json_ {} |
| std::function< void(Ts..., JsonObject)> | json_func_ {nullptr} |
| Trigger< std::shared_ptr< HttpContainer >, std::string &, Ts... > * | success_trigger_with_response_ |
| Trigger< std::shared_ptr< HttpContainer >, Ts... > * | success_trigger_ |
| Trigger< Ts... > * | error_trigger_ = new Trigger<Ts...>() |
| 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. | |
Definition at line 180 of file http_request.h.
|
inline |
Definition at line 182 of file http_request.h.
|
inline |
Definition at line 194 of file http_request.h.
|
inline |
Definition at line 196 of file http_request.h.
|
inline |
Definition at line 190 of file http_request.h.
|
inlineprotected |
Definition at line 282 of file http_request.h.
|
inlineprotected |
Definition at line 288 of file http_request.h.
|
inline |
Definition at line 207 of file http_request.h.
|
inline |
Definition at line 205 of file http_request.h.
|
inline |
Definition at line 201 of file http_request.h.
|
inlineoverridevirtual |
Implements esphome::Action< Ts... >.
Definition at line 213 of file http_request.h.
|
inline |
Definition at line 198 of file http_request.h.
|
inline |
Definition at line 209 of file http_request.h.
| method esphome::http_request::HttpRequestSendAction< Ts >::TEMPLATABLE_VALUE | ( | std::string | , |
| body | ) |
| esphome::http_request::HttpRequestSendAction< Ts >::TEMPLATABLE_VALUE | ( | std::string | , |
| url | ) const |
|
protected |
Definition at line 291 of file http_request.h.
|
protected |
Definition at line 300 of file http_request.h.
|
protected |
Definition at line 292 of file http_request.h.
|
protected |
Definition at line 293 of file http_request.h.
|
protected |
Definition at line 302 of file http_request.h.
|
protected |
Definition at line 289 of file http_request.h.
|
protected |
Definition at line 290 of file http_request.h.
|
protected |
Definition at line 298 of file http_request.h.
|
protected |
Definition at line 295 of file http_request.h.