arduino-audio-tools
Loading...
Searching...
No Matches
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 charhost ()
 
bool isSecure ()
 
const charpath ()
 
int port ()
 
const charprotocol ()
 
void setUrl (const char *url)
 
const charurl ()
 
const charurlRoot ()
 

Protected Member Functions

void parse ()
 

Protected Attributes

Str hostStr {0}
 
Str pathStr {0}
 
int portInt = 0
 
Str protocolStr {0}
 
Str urlRootStr {0}
 
Str 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

Constructor & Destructor Documentation

◆ Url() [1/2]

Url ( )
default

Allow Empty constructor.

◆ Url() [2/2]

Url ( const char url)
inline

setup url from string

Member Function Documentation

◆ host()

const char * host ( )
inline

◆ isSecure()

bool isSecure ( )
inline

◆ parse()

void parse ( )
inlineprotected

◆ path()

const char * path ( )
inline

◆ port()

int port ( )
inline

◆ protocol()

const char * protocol ( )
inline

◆ setUrl()

void setUrl ( const char url)
inline

◆ url()

const char * url ( )
inline

◆ urlRoot()

const char * urlRoot ( )
inline

Member Data Documentation

◆ hostStr

Str hostStr {0}
protected

◆ pathStr

Str pathStr {0}
protected

◆ portInt

int portInt = 0
protected

◆ protocolStr

Str protocolStr {0}
protected

◆ urlRootStr

Str urlRootStr {0}
protected

◆ urlStr

Str urlStr {0}
protected

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