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

#include <LibcurlURLParser.h>

Detailed Description

Libcurl implementation of tenduke::net::URLParser.

Inheritance diagram for tenduke::net::curl::LibCurlURLParser:
tenduke::net::URLParser

Public Member Functions

 LibCurlURLParser (bool lenient=true)
 Constructs new instance.
 
std::unique_ptr< tenduke::net::URLfrom (const std::string &url) const override
 Parses URL.
 

Constructor & Destructor Documentation

◆ LibCurlURLParser()

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

Constructs new instance.

Parameters
lenientparse the URL leniently (allow URL scheme not recognized by libcurl)

Member Function Documentation

◆ from()

std::unique_ptr< tenduke::net::URL > tenduke::net::curl::LibCurlURLParser::from ( const std::string &  urlToParse) const
overridevirtual

Parses URL.

Exceptions
tenduke::net::URLException(or subclasses) if parsing the URL failed

Implements tenduke::net::URLParser.


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