WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.

WASH.CGI.CGITypes

Description

Types of outputable data.

Synopsis

Documentation

newtype URL Source

Constructors

URL 

Fields

unURL :: String
 

Instances

Read URL

String in URL format

Show URL 
Reason URL 

data ResponseFileReference Source

Assumes that file contains correctly formatted HTTP Response starting with Content-Type. Used internally to implement frames.

data Status Source

Constructors

Status 

Fields

statusCode :: Int

status code

statusReason :: String

reason phrase

statusContent :: Maybe (WithHTML () IO ())

more explanation

Instances

newtype Location Source

Constructors

Location URL

redirection

Instances

data FreeForm Source

Constructors

FreeForm 

Fields

ffName :: String

internal name

ffContentType :: String

MIME type

ffRawContents :: String

contents as octet stream

Instances

data CGIOption Source

Constructors

NoPort

do not include port number in generated URLs

AutoPort

include automatically generated port number in generated URLs (default)

Port Int

use this port number in generated URLs

NoHttps

do not attempt to detect Https

AutoHttps

autodetect Https by checking for port number 443 and env var HTTPS (default)

FullURL

generate full URL including scheme, host, and port

PartialURL

generate absolute path URL, only (default)

SessionMode 

data SessionMode Source

Constructors

LogOnly

generate log in hidden field, full server replay (default)

StateIDOnly

generate state id, server threads without replay (only with WSP)

LogAndState

log and state id, server threads with replay as fallback (only with WSP)