hweblib-0.6.3: Haskell Web Library

Safe HaskellSafe
LanguageHaskell2010

Network.Types

Contents

Synopsis

HTTP Types

data Method #

HTTP Methods

Instances

Eq Method # 

Methods

(==) :: Method -> Method -> Bool #

(/=) :: Method -> Method -> Bool #

Show Method # 

data HttpVersion #

HTTP Version holds major and minor numbers.

Constructors

HttpVersion 

Fields

http10 :: HttpVersion #

HTTP 1.0

http11 :: HttpVersion #

HTTP 1.1

data Header #

HTTP Headers

data RequestUri #

Constructors

Asterisk

like in OPTIONS * HTTP/1.1

AbsoluteUri URI

commonly used in proxy servers

AbsolutePath ByteString

like /asd.cgi

RelativeRef URI

with a query part like /asd.cgi?foo=bar

Authority (Maybe URIAuth)

Just the authority part

data Request #

Constructors

Request 

Fields

Instances

data Response #

Constructors

Response 

Fields

data URI #

Constructors

URI 

Fields

Instances

Eq URI # 

Methods

(==) :: URI -> URI -> Bool #

(/=) :: URI -> URI -> Bool #

Show URI # 

Methods

showsPrec :: Int -> URI -> ShowS #

show :: URI -> String #

showList :: [URI] -> ShowS #

data URIAuth #

Constructors

URIAuth 

Fields

Instances

Misc Types