|
ESPHome 2026.11.0b6
|
#include <http_request.h>
Data Structures | |
| struct | Request |
Public Member Functions | |
| HttpRequestSendAction (HttpRequestComponent *parent) | |
| TEMPLATABLE_VALUE (std::string, url) TEMPLATABLE_VALUE(const char * | |
| method | TEMPLATABLE_VALUE (std::string, body) TEMPLATABLE_VALUE(uint32_t |
| method timeout TEMPLATABLE_VALUE(bool, capture_response) static_assert(std void | set_request_headers (const RequestHeader< Ts... > *headers, size_t count) |
| Codegen only: the table must outlive the action. | |
| void | add_collect_header (const char *value) |
| void | init_json (size_t count) |
| 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 () |
| Trigger< std::shared_ptr< HttpContainer >, Ts... > * | get_success_trigger () |
| Trigger< Ts... > * | get_error_trigger () |
| void | set_max_response_buffer_size (size_t max_response_buffer_size) |
| void | play_complex (const Ts &...x) override |
| void | play (const Ts &...x) override |
Public Member Functions inherited from esphome::Action< Ts... > | |
| void | stop_complex () |
| 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 | stop () override |
| void | start_request_ (Request &request, const Ts &...x) |
| void | finish_ (Request &request) |
| void | encode_json_ (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, std::index_sequence< S... >) |
| void | play_next_tuple_ (const std::tuple< Ts... > &tuple) |
| void | stop_next_ () |
| bool | is_running_next_ () |
| bool | next_is_owner_ () const |
| Action * | owner_ () const |
| Only valid when next_is_owner_(). | |
| Action * | chain_next_ () const |
Static Protected Member Functions | |
| static void | handle_event (PendingRequest *request, RequestEvent event) |
Static Protected Member Functions inherited from esphome::Action< Ts... > | |
| static Action * | tag_owner (Action *owner) |
Protected Attributes | |
| HttpRequestComponent * | parent_ |
| ConstVector< RequestHeader< Ts... > > | request_headers_ {} |
| std::vector< std::string > | lower_case_collect_headers_ {"content-type", "content-length"} |
| FixedVector< std::pair< 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_ |
| 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. | |
Additional Inherited Members | |
Static Protected Attributes inherited from esphome::Action< Ts... > | |
| static constexpr uintptr_t | OWNER_TAG |
Definition at line 589 of file http_request.h.
|
inline |
Definition at line 591 of file http_request.h.
|
inline |
Definition at line 608 of file http_request.h.
|
inline |
Definition at line 611 of file http_request.h.
|
inlineprotected |
Definition at line 721 of file http_request.h.
|
inlineprotected |
Definition at line 689 of file http_request.h.
|
inline |
Definition at line 622 of file http_request.h.
|
inline |
Definition at line 620 of file http_request.h.
|
inline |
Definition at line 616 of file http_request.h.
|
inlinestaticprotected |
Definition at line 642 of file http_request.h.
|
inline |
Definition at line 610 of file http_request.h.
|
inlineoverridevirtual |
Implements esphome::Action< Ts... >.
Definition at line 633 of file http_request.h.
|
inlineoverridevirtual |
Reimplemented from esphome::Action< Ts... >.
Definition at line 628 of file http_request.h.
|
inline |
Definition at line 613 of file http_request.h.
|
inline |
Definition at line 624 of file http_request.h.
|
inline |
Codegen only: the table must outlive the action.
Definition at line 604 of file http_request.h.
|
inlineprotected |
Definition at line 663 of file http_request.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from esphome::Action< Ts... >.
Definition at line 661 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 736 of file http_request.h.
|
protected |
Definition at line 730 of file http_request.h.
|
protected |
Definition at line 731 of file http_request.h.
|
protected |
Definition at line 729 of file http_request.h.
|
protected |
Definition at line 738 of file http_request.h.
|
protected |
Definition at line 727 of file http_request.h.
|
protected |
Definition at line 728 of file http_request.h.
|
protected |
Definition at line 735 of file http_request.h.
|
protected |
Definition at line 733 of file http_request.h.