nero-0.2: Lens-based HTTP toolkit

Safe HaskellSafe-Inferred
LanguageHaskell2010

Nero.Response

Contents

Synopsis

Response

ok :: Text -> Response Source

Creates an 200 OK response from the given text. It automatically encodes the text to 'utf-8'. The Mime type is text/plain.

movedPermanently :: Url -> Response Source

Creates an 301 Moved Permanently response with the Location corresponding to the given Url.

Status

data Status Source

The HTTP status code and description.

Instances

status :: Response -> Status Source

Obtain the Status from a Response.