12 #include "../http_request.h" 15 namespace http_request {
17 static const uint8_t MD5_SIZE = 32;
27 void setup()
override;
34 void set_url(
const std::string &url);
43 void cleanup_(std::unique_ptr<ota::OTABackend> backend,
const std::shared_ptr<HttpContainer> &container);
void cleanup_(std::unique_ptr< ota::OTABackend > backend, const std::shared_ptr< HttpContainer > &container)
const float AFTER_WIFI
For components that should be initialized after WiFi is connected.
std::string md5_expected_
static const uint16_t HTTP_RECV_BUFFER
void set_password(const std::string &password)
std::string get_url_with_auth_(const std::string &url)
void set_md5_url(const std::string &md5_url)
void set_md5(const std::string &md5)
float get_setup_priority() const override
void set_url(const std::string &url)
bool validate_url_(const std::string &url)
Implementation of SPI Controller mode.
void set_username(const std::string &username)
std::string md5_expected()
std::string md5_computed_
std::string md5_computed()
Helper class to easily give an object a parent of type T.
void dump_config() override