arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Url Class Reference

URL parser which breaks a full url string up into its individual parts. More...

#include <Url.h>

Public Member Functions

 Url ()=default
 Allow Empty constructor.
 
 Url (const char *url)
 setup url from string
 
const char * host ()
 
bool isSecure ()
 
const char * path ()
 
int port ()
 
const char * protocol ()
 
void setUrl (const char *url)
 
const char * url ()
 
const char * urlRoot ()
 

Protected Member Functions

void parse ()
 

Protected Attributes

StrExt hostStr {0}
 
StrExt pathStr {0}
 
int portInt = 0
 
StrExt protocolStr {0}
 
StrExt urlRootStr {0}
 
StrExt urlStr {0}
 

Detailed Description

URL parser which breaks a full url string up into its individual parts.

http://pschatzmann.ch:80/path1/path2 -> protocol: http -> host: pschatzmann.ch -> port: 80 -> url: http://pschatzmann.ch:80/path1/path2 -> root: http://pschatzmann.ch:80

Author
Phil Schatzmann

The documentation for this class was generated from the following file: