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

Copyright(c) Galois, Inc. 2007, 2008
LicenseBSD3
Maintainerdiatchki@galois.com
Stabilityprovisional
Portability
Safe HaskellNone
LanguageHaskell98

Network.HTTP.Server.Response

Description

 

Synopsis

Documentation

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

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 a Source

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

reason :: StatusCode -> String Source

A brief description of what happend.