mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-23 08:45:22 +03:00
Passing custom HTTPClient to HTTPUpdate (#8773)
This enables passing additional headers to HTTP query. Based on ESP32 HTTPUpdate functionalities.
This commit is contained in:
@ -120,7 +120,9 @@ public:
|
||||
t_httpUpdate_return update(WiFiClient& client, const String& host, uint16_t port, const String& uri = "/",
|
||||
const String& currentVersion = "");
|
||||
t_httpUpdate_return updateFS(WiFiClient& client, const String& url, const String& currentVersion = "");
|
||||
|
||||
t_httpUpdate_return update(HTTPClient& httpClient, const String& currentVersion = "");
|
||||
t_httpUpdate_return updateFS(HTTPClient& httpClient, const String& currentVersion = "");
|
||||
|
||||
// Notification callbacks
|
||||
void onStart(HTTPUpdateStartCB cbOnStart) { _cbStart = cbOnStart; }
|
||||
void onEnd(HTTPUpdateEndCB cbOnEnd) { _cbEnd = cbOnEnd; }
|
||||
|
Reference in New Issue
Block a user