We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 28fcdcf + ce0b374 commit 2129b85Copy full SHA for 2129b85
README.md
@@ -166,6 +166,21 @@ There are some path functions to make working with URIs easier.
166
user> (absolute? (uri "/new/path?x=y&a=w"))
167
false
168
169
+#### Resolving URIs
170
+
171
+`resolve-uri` allows you to resolve a partial URI against a full URI.
172
173
+ user=> (resolve-uri "http://a/b/c/d;p?q=1/2" "http://e/f")
174
+ "http://e/f"
175
+ user=> (resolve-uri "http://a/b/c/d;p?q=1/2" "g")
176
+ "http://a/b/c/g"
177
+ user=> (resolve-uri "http://a/b/c/d;p?q=1/2" "./g")
178
179
+ user=> (resolve-uri "http://a/b/c/d;p?q=1/2" "//g")
180
+ "http://g"
181
+ user=> (resolve-uri "http://a/b/c/d;p?q=1/2" "g?y/../x")
182
+ "http://a/b/c/g?y/../x"
183
184
License
185
-------
186
0 commit comments