GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GU_URI (3)

NAME

gu::URI - Utility class to parse URIs.

CONTENTS

Synopsis

SYNOPSIS

#include <gu_uri.hpp>

    Data Structures

    class Authority

    Public Types

    typedef std::vector< Authority > AuthorityList

    Public Member Functions

    URI (const std::string &, bool strict=true)
Construct URI from string.     const std::string & to_string () const
Get URI string.     const std::string & get_scheme () const
Get URI scheme.     std::string get_authority () const
Get URI authority component.     const std::string & get_user () const
Get ’user’ part of the first entry in authority list.     const std::string & get_host () const
Get ’host’ part of the first entry in authority list.     const std::string & get_port () const
Get ’port’ part of the first entry in authority list.     const AuthorityList & get_authority_list () const
Get authority list.     const std::string & get_path () const
Get URI path.     const std::string & get_fragment () const
Get URI path.     void set_query_param (const std::string &, const std::string &, bool override)
Add query param to URI.     void set_option (const std::string &key, const std::string &val)    
void append_option (const std::string &key, const std::string &val)    
const URIQueryList & get_query_list () const
Get URI query list.     const std::string & get_option (const std::string &) const
return opton by name,     const std::string & get_option (const std::string &opt, const std::string &def) const

Detailed Description

Utility class to parse URIs.

Constructor & Destructor Documentation

gu::URI::URI (const std::string &, bool strict = true)

Construct URI from string.

Parameters:

strict if true, throw exception when scheme is not found, else use a default one

Exceptions:

std::invalid_argument if URI is not valid
std::logic_error in case of internal error
NotSet

Member Function Documentation

    std::string gu::URI::get_authority () const

Get URI authority component.

Returns:

URI authority substring

Exceptions:

NotSet

const AuthorityList& gu::URI::get_authority_list () const [inline]

Get authority list.

Returns:

Authority list

const std::string& gu::URI::get_fragment () const [inline]

Get URI path.

Returns:

URI path

Exceptions:

NotSet

const std::string& gu::URI::get_host () const [inline]

Get ’host’ part of the first entry in authority list.

Returns:

Host substring

Exceptions:

NotSet

    const std::string& gu::URI::get_option (const std::string &) const

return opton by name,

Exceptions:

NotFound

const std::string& gu::URI::get_path () const [inline]

Get URI path.

Returns:

URI path (always set)

const std::string& gu::URI::get_port () const [inline]

Get ’port’ part of the first entry in authority list.

Returns:

Port substring

Exceptions:

NotSet

const std::string& gu::URI::get_scheme () const [inline]

Get URI scheme.

Returns:

URI scheme (always set)

Exceptions:

NotSet

const std::string& gu::URI::get_user () const [inline]

Get ’user’ part of the first entry in authority list.

Returns:

User substring

Exceptions:

NotSet

const std::string& gu::URI::to_string () const [inline]

Get URI string.

Returns:

URI string

Author

Generated automatically by Doxygen for GCS from the source code.

Search for    or go to Top of page |  Section 3 |  Main Index


Version 0.2.3 GU::URI (3) Sun Apr 3 2016

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.