Character Predicates (RFC 3986 Section 2) #
sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
Equations
Instances For
reserved = gen-delims / sub-delims
Equations
Instances For
Basic Parsers (RFC 3986 Section 2) #
Parse zero or more with a parser and accumulate the results into a string
Equations
- LeanUri.Internal.manyStrings1 p = do let __do_lift ← p LeanUri.Internal.manyStrings p __do_lift
Instances For
Parse a percent-encoded octet: pct-encoded = "%" HEXDIG HEXDIG
Equations
- One or more equations did not get rendered due to their size.
Instances For
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
Instances For
sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
Instances For
Component-specific allowed character predicates (RFC 3986) #
Allowed in a path segment: unreserved, sub-delims, ':', '@' -
Equations
- LeanUri.Internal.isPathChar c = (LeanUri.Internal.isUnreserved c || LeanUri.Internal.isSubDelim c || c == ':' || c == '@' || c == '/')
Instances For
Allowed in a query or fragment: unreserved, sub-delims, ':', '@', '/', '?' -
Equations
- LeanUri.Internal.isQueryOrFragmentChar c = (LeanUri.Internal.isUnreserved c || LeanUri.Internal.isSubDelim c || c == ':' || c == '@' || c == '/' || c == '?')
Instances For
Allowed in userinfo: unreserved, sub-delims, ':' -
Equations
Instances For
Allowed in reg-name (host): unreserved, sub-delims -
Equations
Instances For
Percent Decoding Chars #
Convert a hexadecimal character to its numeric value. Assumes input is a valid HEXDIG (produced by the parser).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- LeanUri.Internal.uInt8toOneHexChar x = if x < 10 then Char.ofUInt8 (x + '0'.toUInt8) else if x < 16 then Char.ofUInt8 (x + 'A'.toUInt8) else Char.ofUInt8 0
Instances For
Convert a UInt8 to percent encoded
Equations
- LeanUri.Internal.uInt8ToHexChars c = toString "%" ++ toString (LeanUri.Internal.uInt8toOneHexChar (c / 16)) ++ toString (LeanUri.Internal.uInt8toOneHexChar (c % 16))
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- LeanUri.Internal.pctNormalize allowed s = match (LeanUri.Internal.parsePctNormalize allowed).run s with | Except.ok result => result | Except.error a => s