10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::net::curl::LibcurlURL Class Reference

#include <LibcurlURL.h>

Detailed Description

A utility class to parse URLs with Libcurl.

Public Member Functions

 LibcurlURL (bool lenient=true)
 Constructs a new instance.
 
std::string getScheme () const
 
std::string getUsername () const
 
std::string getPassword () const
 
std::uint16_t getPort () const
 
std::string getHostname () const
 
std::string getPath () const
 
std::string getQueryParameters () const
 
std::string getFragment () const
 
virtual void parse (const std::string &url)
 Parses given URL into this instance.
 

Constructor & Destructor Documentation

◆ LibcurlURL()

tenduke::net::curl::LibcurlURL::LibcurlURL ( bool lenient = true)
explicit

Constructs a new instance.

Parameters
lenientaccept URL-scheme not recognized by libcurl.
Exceptions
std::bad_allocif unable to initialize libcurl

Member Function Documentation

◆ parse()

void tenduke::net::curl::LibcurlURL::parse ( const std::string & url)
virtual

Parses given URL into this instance.

Parameters
url-
Exceptions
tenduke::net::MalformedURLExceptionif URL malformed
tenduke::net::URLException(or other subclasses) for other parsing reasongs

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