|
void | NewUri (const char *uri, uint16_t timeout=20 *TICKS_PER_SECOND, bool skipLookup=false) |
| Replace the existing (URI) object with new information.
|
|
| ParsedURI () |
| Constructor to create a new blank URI object. For rare cases.
|
|
| ParsedURI (const char *uri, uint16_t timeout=20 *TICKS_PER_SECOND, bool skipLookup=false) |
| Constructor to create a new URI object.
|
|
bool | valid () const |
| Check to see if URI is valid.
|
|
const char * | GetPath () |
| Get the cached URI path.
|
|
const char * | GetHost () |
| Get the cached URI Host name.
|
|
IPADDR | GetAddr () |
| Get the resolved host Address.
|
|
uint16_t | GetPort () |
| Get the cached URI network port number.
|
|
bool | IsSecure () |
| Check the security state of the cached URI object. Requires WEB_CLIENT_SSL_SUPPORT be defined in predef.h.
|
|
void | Invalidate () |
| Set the state of the cached URI object to invalid.
|
|
Parsed Uniform Resource Identifier Class (URI)
Web Client HTTP functions can pass a URL, which has to be parsed and use DNS to resolve if necessary. This class provides an object with the parsed and DNS results that can be used for future transactions. The intent of using this class is to cache the parsed results and dns lookup for communication to the same resource.
Enabling WEB_CLIENT_SSL_SUPPORT in predef.h adds TLS support.
The maximum size of the cached URI, path and hose are 256 bytes each.