|
ESPHome 2026.11.0-dev
|
#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 596 of file http_request.h.
|
inline |
Definition at line 598 of file http_request.h.
|
inline |
Definition at line 615 of file http_request.h.
|
inline |
Definition at line 618 of file http_request.h.
|
inlineprotected |
Definition at line 728 of file http_request.h.
|
inlineprotected |
Definition at line 696 of file http_request.h.
|
inline |
Definition at line 629 of file http_request.h.
|
inline |
Definition at line 627 of file http_request.h.
|
inline |
Definition at line 623 of file http_request.h.
|
inlinestaticprotected |
Definition at line 649 of file http_request.h.
|
inline |
Definition at line 617 of file http_request.h.
|
inlineoverridevirtual |
Implements esphome::Action< Ts... >.
Definition at line 640 of file http_request.h.
|
inlineoverridevirtual |
Reimplemented from esphome::Action< Ts... >.
Definition at line 635 of file http_request.h.
|
inline |
Definition at line 620 of file http_request.h.
|
inline |
Definition at line 631 of file http_request.h.
|
inline |
Codegen only: the table must outlive the action.
Definition at line 611 of file http_request.h.
|
inlineprotected |
Definition at line 670 of file http_request.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from esphome::Action< Ts... >.
Definition at line 668 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 743 of file http_request.h.
|
protected |
Definition at line 737 of file http_request.h.
|
protected |
Definition at line 738 of file http_request.h.
|
protected |
Definition at line 736 of file http_request.h.
|
protected |
Definition at line 745 of file http_request.h.
|
protected |
Definition at line 734 of file http_request.h.
|
protected |
Definition at line 735 of file http_request.h.
|
protected |
Definition at line 742 of file http_request.h.
|
protected |
Definition at line 740 of file http_request.h.