Default encoding for query params.
Default encoding for query params.
(absolute-path? uri)
Returns true if the given uri path is absolute.
Returns true if the given uri path is absolute.
(absolute? uri)
Returns true if the given URI is absolute.
Returns true if the given URI is absolute.
(default-encoding)
Get the default encoding for query params.
Get the default encoding for query params.
(map->string uri)
Convert a URI in map form to a string.
Convert a URI in map form to a string.
(map->uri uri)
Convert a hash-map into a java.net.URI.
Convert a hash-map into a java.net.URI.
(normalize-path uri)
Normalize the path of the given uri.
Normalize the path of the given uri.
(param uri key)
(param uri key value)
(param uri key value index)
Get the last param value that matches the given key. If 3 args are given, set the first param value that matches the given key, and remove the remaining params that match the given key. If 4 args are given, set the nth param value that matches the given key.
Get the last param value that matches the given key. If 3 args are given, set the first param value that matches the given key, and remove the remaining params that match the given key. If 4 args are given, set the nth param value that matches the given key.
(param-raw uri key)
(param-raw uri key value)
(param-raw uri key value index)
Get the last param value that matches the given key. If 3 args are given, set the first param value that matches the given key, and remove the remaining params that match the given key. If 4 args are given, set the nth param value that matches the given key.
Get the last param value that matches the given key. If 3 args are given, set the first param value that matches the given key, and remove the remaining params that match the given key. If 4 args are given, set the nth param value that matches the given key.
(params uri)
(params uri key)
Returns an alist of the query values whose key matches the given key. If no key is given, all values are returned.
Returns an alist of the query values whose key matches the given key. If no key is given, all values are returned.
(params-raw uri)
(params-raw uri key)
Returns an alist of the query values whose key matches the given key. If no key is given, all values are returned.
Returns an alist of the query values whose key matches the given key. If no key is given, all values are returned.
(query-keys uri)
Returns a list of the query string keys of the given URI.
Returns a list of the query string keys of the given URI.
(query-list uri)
Returns a list from the query string of the given URI.
Returns a list from the query string of the given URI.
(query-map uri)
(query-map uri param-map)
Returns a map of the query string parameters for the given URI.
Returns a map of the query string parameters for the given URI.
(query-pairs uri)
(query-pairs uri key)
Returns an alist of the query params matching the given key. If no key is given, an alist of all the query params is returned. The keys and values of the pairs are URL decoded.
Returns an alist of the query params matching the given key. If no key is given, an alist of all the query params is returned. The keys and values of the pairs are URL decoded.
(raw-keys uri)
Returns a list of the query string keys of the given URI.
Returns a list of the query string keys of the given URI.
(raw-pairs uri)
(raw-pairs uri key)
Returns an alist of the query params matching the given key. If no key is given, an alist of all the query params is returned.
Returns an alist of the query params matching the given key. If no key is given, an alist of all the query params is returned.
(resolve-path the-uri the-path)
Resolve the given path against the given uri.
Resolve the given path against the given uri.
(resolve-uri src-uri target-uri)
Resolves a target uri from a source uri. Essentially this is an implementation of: -> RFC 2396 -> RFC 1808 This implementation and the associated tests based on this document: http://www.ics.uci.edu/~fielding/url/test2.html
Resolves a target uri from a source uri. Essentially this is an implementation of: -> RFC 2396 -> RFC 1808 This implementation and the associated tests based on this document: http://www.ics.uci.edu/~fielding/url/test2.html
(string->map string)
Convert a URI in string form to a map.
Convert a URI in string form to a map.
Protocol for dealing with URIs.
Protocol for dealing with URIs.
(query self)
(query self new-query)
Get or set the query string of the URI.
Get or set the query string of the URI.
(scheme self)
(scheme self new-scheme)
Get or set the scheme component of the URI.
Get or set the scheme component of the URI.
(path self)
(path self new-path)
Get or set the path of the URI.
Get or set the path of the URI.
(user-info self)
(user-info self new-user-info)
Get or set the user-info of the URI.
Get or set the user-info of the URI.
(fragment self)
(fragment self new-fragment)
Get or set the fragment of the URI.
Get or set the fragment of the URI.
(authority self)
(authority self new-authority)
Get or set the authority of the URI.
Get or set the authority of the URI.
(port self)
(port self new-port)
Get or set the port of the URI.
Get or set the port of the URI.
(scheme-relative self)
(scheme-relative self new-scheme-relative)
Get or set the scheme specific part of the URI.
Get or set the scheme specific part of the URI.
(host self)
(host self new-host)
Get or set the host of the URI.
Get or set the host of the URI.
(uri uri)
Builds a Uri object. Takes a map of URI keys, a URI string, or another Uri object.
Builds a Uri object. Takes a map of URI keys, a URI string, or another Uri object.
(uri->map uri)
Convert a java.net.URI into a hash-map.
Convert a java.net.URI into a hash-map.
(with-encoding encoding & body)
Run body with the given encoding as the default-encoding.
Run body with the given encoding as the default-encoding.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close