dormouse-uri-0.1.0.1: Library for type-safe representations of Uri/Urls
Safe HaskellSafe-Inferred
LanguageHaskell2010

Dormouse.Uri.Encode

Synopsis

Documentation

encodeQuery :: Query -> ByteString Source #

Generate an ascii Bytestring from a supplied Query by percent encoding all of the invalid octets

encodePath :: Path 'Absolute -> ByteString Source #

Generate an ascii Bytestring from a supplied Path by percent encoding all of the invalid octets

encodeUnless :: (Char -> Bool) -> Text -> ByteString Source #

Percent encode all chars in the supplied text except for those which satsify the supplied predicate