iri-0.4: RFC-based resource identifier library

Safe HaskellNone
LanguageHaskell2010

Iri.Parsing.ByteString

Synopsis

Documentation

uri :: ByteString -> Either Text Iri Source #

Parser of a well-formed URI conforming to the RFC3986 standard into IRI. Performs URL- and Punycode-decoding.

httpUri :: ByteString -> Either Text HttpIri Source #

Same as uri, but optimized specifially for the case of HTTP URIs.

regName :: ByteString -> Either Text RegName Source #

Domain name parser.

uriQuery :: ByteString -> Query Source #

Assuming we have a valid URI as input, extract the query part from it.