forked from khoih-prog/AsyncHTTPRequest_Generic
Now using std::optional
This commit is contained in:
@@ -58,7 +58,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tl::optional<URL> parseURL(const String &url)
|
std::optional<URL> parseURL(const String &url)
|
||||||
{
|
{
|
||||||
int hostBeg = 0;
|
int hostBeg = 0;
|
||||||
URL _URL;
|
URL _URL;
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <WString.h>
|
#include <WString.h>
|
||||||
|
|
||||||
#include <include/tl/optional.hpp>
|
#include <optional>
|
||||||
|
|
||||||
#include "AsyncHTTPRequest_Debug.h"
|
#include "AsyncHTTPRequest_Debug.h"
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ struct URL
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
tl::optional<URL> parseURL(const String &url);
|
std::optional<URL> parseURL(const String &url);
|
||||||
|
|
||||||
class AsyncHTTPRequest
|
class AsyncHTTPRequest
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user