Added getter for url

This commit is contained in:
2020-11-10 03:57:44 +01:00
parent fd0d4c8dc8
commit da9ee00a7a
2 changed files with 2 additions and 2 deletions

View File

@ -524,8 +524,6 @@ bool AsyncHTTPRequest::_buildRequest()
_request->write(_URL.query);
_request->write(" HTTP/1.1\r\n");
_URL = {};
header* hdr = _headers;
while (hdr)

View File

@ -243,6 +243,8 @@ class AsyncHTTPRequest
String respHeaderValue(const __FlashStringHelper *name);
bool respHeaderExists(const __FlashStringHelper *name);
#endif
const URL &url() const { return _URL; }
String headers(); // Return all headers as String