forked from khoih-prog/AsyncHTTPRequest_Generic
Added getter for url
This commit is contained in:
@@ -524,8 +524,6 @@ bool AsyncHTTPRequest::_buildRequest()
|
|||||||
_request->write(_URL.query);
|
_request->write(_URL.query);
|
||||||
_request->write(" HTTP/1.1\r\n");
|
_request->write(" HTTP/1.1\r\n");
|
||||||
|
|
||||||
_URL = {};
|
|
||||||
|
|
||||||
header* hdr = _headers;
|
header* hdr = _headers;
|
||||||
|
|
||||||
while (hdr)
|
while (hdr)
|
||||||
|
@@ -243,6 +243,8 @@ class AsyncHTTPRequest
|
|||||||
String respHeaderValue(const __FlashStringHelper *name);
|
String respHeaderValue(const __FlashStringHelper *name);
|
||||||
bool respHeaderExists(const __FlashStringHelper *name);
|
bool respHeaderExists(const __FlashStringHelper *name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
const URL &url() const { return _URL; }
|
||||||
|
|
||||||
String headers(); // Return all headers as String
|
String headers(); // Return all headers as String
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user