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)
|
||||||
|
@ -244,6 +244,8 @@ class AsyncHTTPRequest
|
|||||||
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
|
||||||
|
|
||||||
void onData(onDataCB, void* arg = 0); // Notify when min data is available
|
void onData(onDataCB, void* arg = 0); // Notify when min data is available
|
||||||
|
Reference in New Issue
Block a user