URI

module Network.URI
network Network.URI
This module defines functions for handling URIs. It presents substantially the same interface as the older GHC Network.URI module, but is implemented using Parsec rather than a Regex library that is not available with Hugs. The internal representation of URI has been changed so that URI strings are more completely preserved when round-tripping to a URI value and back. In addition, four methods are provided for parsing different kinds of URI string (as noted in RFC3986): parseURI, parseURIReference, parseRelativeReference and parseAbsoluteURI. Further, four methods are provided for classifying different kinds of URI string (as noted in RFC3986): isURI, isURIReference, isRelativeReference and isAbsoluteURI. The long-standing official reference for URI handling was RFC2396 [1], as updated by RFC 2732 [2], but this was replaced by a new specification, RFC3986 [3] in January 2005. This latter specification has been used as the primary reference for constructing the URI parser implemented here, and it is intended that there is a direct relationship between the syntax definition in that document and this parser implementation. RFC 1808 [4] contains a number of test cases for relative URI handling. Dan Connolly's Python module uripath.py [5] also contains useful details and test cases. Some of the code has been copied from the previous GHC implementation, but the parser is replaced with one that performs more complete syntax checking of the URI itself, according to RFC3986 [3]. References * http://www.ietf.org/rfc/rfc2396.txt * http://www.ietf.org/rfc/rfc2732.txt * http://www.ietf.org/rfc/rfc3986.txt * http://www.ietf.org/rfc/rfc1808.txt * http://www.w3.org/2000/10/swap/uripath.py
URI :: String -> Maybe URIAuth -> String -> String -> String -> URI
network Network.URI
data URI
network Network.URI
Represents a general universal resource identifier using its component parts. For example, for the URI > foo://anonymous@www.haskell.org:42/ghc?query#frag the components are:
URIAuth :: String -> String -> String -> URIAuth
network Network.URI
data URIAuth
network Network.URI
Type for authority value within a URI
URIAuthority :: Maybe String -> Maybe String -> String -> Maybe Int -> URIAuthority
HTTP Network.HTTP.Base
data URIAuthority
HTTP Network.HTTP.Base
package uri
package
Library for working with URIs, including parsing, rendering, merging, escaping Version 0.1.6.2
package uri-conduit
package
Read and write URIs Version 1.1.1.1
package uri-enumerator
package
This package is deprecated in favor of uri-conduit. Version 0.1.0.1
package uri-enumerator-file
package
uri-enumerator backend for the file scheme Version 0.1.1.1
package uri-template
package
A URI template expansion library for Haskell. Provides support for Joe Gregorio's standardized format, OpenSearch 1.1's format + WADL/WSDL-style templates. Version 0.2
uriAuthority :: URI -> Maybe URIAuth
network Network.URI
> //anonymous@www.haskell.org:42
uriAuthPort :: Maybe URI -> URIAuth -> Int
HTTP Network.HTTP.Base
uriAuthToString :: URIAuth -> String
HTTP Network.HTTP.Base
uriDefaultTo :: URI -> URI -> URI
HTTP Network.Browser
uriDefaultTo a b returns a URI that is consistent with the first argument URI a when read in the context of the second URI b. If the second argument is not sufficient context for determining a full URI then anarchy reins.
uriFragment :: URI -> String
network Network.URI
> #frag
uriIsAbsolute :: URI -> Bool
network Network.URI
uriIsRelative :: URI -> Bool
network Network.URI
uriPath :: URI -> String
network Network.URI
> /ghc

Show more results