http-server-1.0.1: A library for writing Haskell web servers.

Portability
Stabilityprovisional
Maintainerdiatchki@galois.com
Safe HaskellSafe-Infered

Network.HTTP.Server.Response

Description

 

Synopsis

Documentation

data StatusCode Source

A list of status code. This not yet complete.

err_response :: BufferType a => StatusCode -> Response aSource

Make a simple response with the given status and body. Intended to be used for (bad) errors. Adds a close header.

respond :: BufferType a => StatusCode -> Response aSource

Make a simple response with the given status and body. No headers or body.

reason :: StatusCode -> StringSource

A brief description of what happend.