34 #ifndef _QORE_QOREURL_H 36 #define _QORE_QOREURL_H 42 hashdecl qore_url_private* priv;
45 DLLLOCAL
void reset();
46 DLLLOCAL
void parseIntern(
const char* url,
ExceptionSink* xsink);
52 DLLLOCAL QoreURL& operator=(
const QoreURL&);
64 DLLEXPORT
QoreURL(
const char* url);
77 DLLEXPORT
QoreURL(
const char* url,
bool keep_brackets);
107 DLLEXPORT
int parse(
const char* url);
125 DLLEXPORT
int parse(
const char* url,
bool keep_brackets);
157 DLLEXPORT
bool isValid()
const;
DLLEXPORT char * take_username()
returns a pointer to the username in the URL (0 if none present), caller owns the memory returned ...
DLLEXPORT ~QoreURL()
frees all memory and destroys the structure
This is the hash or associative list container type in Qore, dynamically allocated only...
Definition: QoreHashNode.h:50
DLLEXPORT int parse(const char *url)
parses the URL string passed
DLLEXPORT QoreHashNode * getHash()
returns a hash of the parameters parsed, destructive: zeros out all elements, caller owns the referen...
helps with parsing URLs and provides access to URL components through Qore data structures ...
Definition: QoreURL.h:39
DLLEXPORT bool isValid() const
returns true if the URL string parsed is valid
DLLEXPORT char * take_password()
returns a pointer to the password in the URL (0 if none present), caller owns the memory returned ...
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:81
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:46
DLLEXPORT const QoreString * getPassword() const
returns the password in the URL or 0 if none given
DLLEXPORT char * take_path()
returns a pointer to the path (0 if none present), caller owns the memory returned ...
DLLEXPORT char * take_host()
returns a pointer to the hostname in the URL (0 if none present), caller owns the memory returned ...
DLLEXPORT QoreURL()
creates an empty structure
DLLEXPORT const QoreString * getHost() const
returns the hostname of the URL
DLLEXPORT const QoreString * getUserName() const
returns the user name in the URL or 0 if none given
DLLEXPORT const QoreString * getPath() const
returns the path component of the URL or 0 if none given
DLLEXPORT const QoreString * getProtocol() const
returns the protocol component of the URL or 0 if none given
DLLEXPORT int getPort() const
returns the port number given in the URL or 0 if none present