aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/lluri.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llcommon/lluri.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/linden/indra/llcommon/lluri.h b/linden/indra/llcommon/lluri.h
index d1499b8..3f24799 100644
--- a/linden/indra/llcommon/lluri.h
+++ b/linden/indra/llcommon/lluri.h
@@ -48,6 +48,14 @@ class LLURI
48public: 48public:
49 LLURI(); 49 LLURI();
50 LLURI(const std::string& escaped_str); 50 LLURI(const std::string& escaped_str);
51 LLURI(const std::string& scheme,
52 const std::string& userName,
53 const std::string& password,
54 const std::string& hostName,
55 U16 hostPort,
56 const std::string& escapedPath,
57 const std::string& escapedQuery);
58
51 // construct from escaped string, as would be transmitted on the net 59 // construct from escaped string, as would be transmitted on the net
52 60
53 ~LLURI(); 61 ~LLURI();
@@ -68,8 +76,6 @@ public:
68 const U32& port, 76 const U32& port,
69 const LLSD& path, 77 const LLSD& path,
70 const LLSD& query); 78 const LLSD& query);
71
72
73 std::string asString() const; 79 std::string asString() const;
74 // the whole URI, escaped as needed 80 // the whole URI, escaped as needed
75 81
@@ -84,10 +90,15 @@ public:
84 // for schemes that follow path like syntax (http, https, ftp) 90 // for schemes that follow path like syntax (http, https, ftp)
85 std::string authority() const; // ex.: "host.com:80" 91 std::string authority() const; // ex.: "host.com:80"
86 std::string hostName() const; // ex.: "host.com" 92 std::string hostName() const; // ex.: "host.com"
93 std::string userName() const;
94 std::string password() const;
87 U16 hostPort() const; // ex.: 80, will include implicit port 95 U16 hostPort() const; // ex.: 80, will include implicit port
96 BOOL defaultPort() const; // true if port is default for scheme
97 const std::string& escapedPath() const { return mEscapedPath; }
88 std::string path() const; // ex.: "/abc/def", includes leading slash 98 std::string path() const; // ex.: "/abc/def", includes leading slash
89 // LLSD pathArray() const; // above decoded into an array of strings 99 // LLSD pathArray() const; // above decoded into an array of strings
90 std::string query() const; // ex.: "x=34", section after "?" 100 std::string query() const; // ex.: "x=34", section after "?"
101 const std::string& escapedQuery() const { return mEscapedQuery; }
91 LLSD queryMap() const; // above decoded into a map 102 LLSD queryMap() const; // above decoded into a map
92 static LLSD queryMap(std::string escaped_query_string); 103 static LLSD queryMap(std::string escaped_query_string);
93 static std::string mapToQueryString(const LLSD& queryMap); 104 static std::string mapToQueryString(const LLSD& queryMap);