webgear-core-1.0.1: Composable, type-safe library to build HTTP APIs
Safe HaskellNone
LanguageHaskell2010

WebGear.Core.Response

Contents

Description

Responses from handlers.

Synopsis

Basic Types

data Response Source #

An HTTP response sent from the server to the client.

The response contains a status, optional headers and an optional body payload.

Constructors

Response 

Fields

Instances

Instances details
Eq Response Source # 
Instance details

Defined in WebGear.Core.Response

Ord Response Source # 
Instance details

Defined in WebGear.Core.Response

Show Response Source # 
Instance details

Defined in WebGear.Core.Response

Trait Status Response Source # 
Instance details

Defined in WebGear.Core.Trait.Status

Associated Types

type Attribute Status Response Source #

Trait (JSONBody t) Response Source # 
Instance details

Defined in WebGear.Core.Trait.Body

Associated Types

type Attribute (JSONBody t) Response Source #

Trait (Body t) Response Source # 
Instance details

Defined in WebGear.Core.Trait.Body

Associated Types

type Attribute (Body t) Response Source #

Trait (Header 'Required 'Strict name val) Response Source # 
Instance details

Defined in WebGear.Core.Trait.Header

Associated Types

type Attribute (Header 'Required 'Strict name val) Response Source #

Trait (Header 'Optional 'Strict name val) Response Source # 
Instance details

Defined in WebGear.Core.Trait.Header

Associated Types

type Attribute (Header 'Optional 'Strict name val) Response Source #

type Attribute Status Response Source # 
Instance details

Defined in WebGear.Core.Trait.Status

type Attribute (JSONBody t) Response Source # 
Instance details

Defined in WebGear.Core.Trait.Body

type Attribute (Body t) Response Source # 
Instance details

Defined in WebGear.Core.Trait.Body

type Attribute (Body t) Response = t
type Attribute (Header 'Required 'Strict name val) Response Source # 
Instance details

Defined in WebGear.Core.Trait.Header

type Attribute (Header 'Required 'Strict name val) Response = val
type Attribute (Header 'Optional 'Strict name val) Response Source # 
Instance details

Defined in WebGear.Core.Trait.Header

type Attribute (Header 'Optional 'Strict name val) Response = Maybe val

toWaiResponse :: Response -> Response Source #

Generate a WAI response