salvia-protocol-1.0.0: Protocol suite for the Salvia webserver, including functionality for URI, HTTP, Cookie and MIME.

Network.Protocol.Uri.Data

Synopsis

Documentation

data IPv4 Source

Constructors

IPv4 Int Int Int Int 

Instances

data Domain Source

Constructors

Domain 

Fields

__parts :: [String]
 

Instances

data Host Source

Constructors

Hostname 

Fields

__domain :: Domain
 
RegName 

Fields

__regname :: RegName
 
IP 

Fields

__ipv4 :: IPv4
 

Instances

data Path Source

Constructors

Path 

Fields

__segments :: [PathSegment]
 

Instances

data Uri Source

Instances

_query :: Uri :-> QuerySource

Access raw (URI-encoded) query.

authority :: Uri :-> AuthoritySource

Access authority part of the URI.

domain :: Uri :-> Maybe DomainSource

Access domain part of the URI, returns Nothing when the host is a regname or IP-address.

regname :: Uri :-> Maybe RegNameSource

Access regname part of the URI, returns Nothing when the host is a domain or IP-address.

ipv4 :: Uri :-> Maybe IPv4Source

Access IPv4-address part of the URI, returns Nothing when the host is a domain or regname.

_fragment :: Uri :-> FragmentSource

Access raw (URI-encoded) fragment.

port :: Uri :-> Maybe PortSource

Access the port number part of the URI when available.

query :: Uri :-> QuerySource

Access the query part of the URI, the part that follows the ?. The query will be properly decoded when reading and encoded when writing.

fragment :: Uri :-> FragmentSource

Access the fragment part of the URI, the part that follows the #. The fragment will be properly decoded when reading and encoded when writing.

relative :: Uri :-> BoolSource

Is a URI relative?

scheme :: Uri :-> SchemeSource

Access the scheme part of the URI. A scheme is probably the protocol indicator like http, ftp, etc.

segments :: Uri :-> [PathSegment]Source

Access the path part of the URI as a list of path segments. The segments will still be URI-encoded.

userinfo :: Uri :-> StringSource

Access the userinfo part of the URI. The userinfo contains an optional username and password or some other credentials.

mkUri :: UriSource

Constructors for making empty URI.

mkScheme :: SchemeSource

Constructors for making empty Scheme.

mkPath :: PathSource

Constructors for making empty Path.

mkAuthority :: AuthoritySource

Constructors for making empty Authority.

mkQuery :: QuerySource

Constructors for making empty Query.

mkFragment :: FragmentSource

Constructors for making empty Fragment.

mkUserinfo :: UserInfoSource

Constructors for making empty UserInfo.

mkHost :: HostSource

Constructors for making empty Host.

mkPort :: Maybe PortSource

Constructors for making empty Port.