webserver-0.6.0.0: HTTP server library

Safe HaskellSafe-Inferred

Network.Web.Params

Description

Parameters of HTTP.

Synopsis

Documentation

data Method Source

Methods of HTTP.

data Version Source

Versions of HTTP.

Constructors

HTTP10 
HTTP11 

Instances

toStatus :: ByteString -> Maybe StatusSource

Converting numeric status to Status.

badStatus :: Status -> BoolSource

Returning True for 4xx and 5xx.

data Persist Source

The type for persist connection or not

Constructors

Close 
Keep 
PerUnknown 

Instances

type FieldValue = ByteStringSource

Field value of HTTP header.

toFieldKey :: ByteString -> FieldKeySource

Converting field key to FieldKey.

fromFieldKey :: FieldKey -> ByteStringSource

Converting FieldKey to field key.

type CT = ByteStringSource

The type for Content-Type.

textHtml :: CTSource

The value for text/html.

selectContentType :: String -> CTSource

Selecting a value of Content-Type from a file suffix.