webserver-0.4.0: HTTP server library

Network.Web.URI

Description

Parser for URI

Synopsis

Documentation

data URI Source

Abstract data type for URI

Instances

data URIAuth Source

Abstract data type for URI Authority

Instances

parseURI :: ByteString -> Maybe URISource

Parsing URI.

uriHostName :: URI -> ByteStringSource

Getting a hostname from URI.

uriPortNumber :: URI -> ByteStringSource

Getting a port number from URI.

toURL :: URI -> ByteStringSource

Making a URL string from URI.

toURLwoPort :: URI -> ByteStringSource

Making a URL string from URI without port.

isAbsoluteURI :: ByteString -> BoolSource

Checking whether or not URI starts with "http:".

unEscapeString :: String -> StringSource

Decoding the %XX encoding.

unEscapeByteString :: ByteString -> ByteStringSource

Decoding the %XX encoding.