FB::URI Class Reference
Data structure for dealing with URI strings. More...
#include <URI.h>
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
1.6.1
Labels
Page: class FB URI Members
Page: class FB URI registerValidLocalhost
Page: class FB URI resetValidLocalhost
Page: class FB URI URI (2)
Page: class FB URI operator==
Page: class FB URI appendPathComponent
Page: class FB URI fromString
Page: class FB URI parse_query_data
Page: class FB URI url_encode
Page: class FB URI url_decode
Page: class FB URI isLocalhost
Page: class FB URI filename
Page: class FB URI URI
Page: class FB URI toString
