Liking cljdoc? Tell your friends :D

lambdaisland.uri.normalize


char-seqclj/s

(char-seq str)
(char-seq str offset)

Return a seq of the characters in a string, making sure not to split up UCS-2 (or is it UTF-16?) surrogate pairs. Because JavaScript. And Java.

Return a seq of the characters in a string, making sure not to split up
UCS-2 (or is it UTF-16?) surrogate pairs. Because JavaScript. And Java.
sourceraw docstring

character-classesclj/s

Which characters should be percent-encoded depends on which section of the URI is being normalized. This map contains regexes that for each case match the characters that need encoding.

Which characters should be percent-encoded depends on which section
of the URI is being normalized. This map contains regexes that for each
case match the characters that need encoding.
sourceraw docstring

normalizeclj/s

(normalize uri)

Normalize a lambdaisland.uri.URI.

Normalize a lambdaisland.uri.URI.
sourceraw docstring

normalize-pathclj/s

(normalize-path path)
source

normalize-queryclj/s

(normalize-query query)
source

percent-decodeclj/s

(percent-decode s)

The inverse of percent-encode, convert any %XX sequences in a string to characters. Byte sequences are interpreted as UTF-8. To use a different encoding. re-bind *character-encoding*

The inverse of `percent-encode`, convert any %XX sequences in a string to
characters. Byte sequences are interpreted as UTF-8. To use a different
encoding. re-bind `*character-encoding*`
sourceraw docstring

percent-encodeclj/s

(percent-encode component)
(percent-encode component type)

Convert characters in their percent encoded form. e.g. (percent_encode "a") #_=> "%61". When given a second argument, then only characters of the given character class are encoded, see character-class.

Characters are encoded as UTF-8. To use a different encoding. re-bind *character-encoding*

Convert characters in their percent encoded form. e.g.
`(percent_encode "a") #_=> "%61"`. When given a second argument, then
only characters of the given character class are encoded,
see `character-class`.

Characters are encoded as UTF-8. To use a different encoding. re-bind
`*character-encoding*`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close