Skip to end of metadata
Go to start of metadata

FB::URI Class Reference

Data structure for dealing with URI strings. More...

#include <URI.h>

List of all members.

Public Member Functions

 URI ()
 Initializes an empty FB::URI object.
 URI (const std::string &str_uri)
 Initializes a FB::URI object by decoding the input URL.
bool operator== (const URI &right) const
 Compares two FB::URI objects.
std::string toString (bool include_domain_part=true) const
 converts the FB::URI object to a string
void appendPathComponent (const std::string &pc)
std::string filename () const
bool isLocalhost () const
void parse_query_data (const std::string &in_str)
 Parses a urlencoded QueryString and stores the results in the URI.

Static Public Member Functions

static std::string url_decode (const std::string &in)
 Decodes the given urlencoded URL.
static std::string url_encode (const std::string &in)
 Encodes the given URL for transmission.
static URI fromString (const std::string &in_str)
 Returns a URI object from the given string.
static void resetValidLocalhost ()
static void registerValidLocalhost (std::string domain, std::string ip="")

Detailed Description

Data structure for dealing with URI strings.

     FB::URI my_uri("http://[email protected]/some/path?myqData=asdf#fdsa");
     // my_uri.protocol == "http"
     // my_uri.login = "frank"
     // my_uri.domain == "www.firebreath.org"
     // my_uri.port == 0 (indicating default port)
     // my_uri.path == "/some/path"
     // my_uri.query_data["myqData"] == "asdf"
     // my_uri.fragment == "fdsa"
Since:
1.4b1

Definition at line 42 of file URI.h.


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

Generated on 19 Jun 2013 for FireBreath by  doxygen 1.6.1
Labels
  • None