http-server-1: A library fro writing Haskell web servers.Source codeContentsIndex
Network.HTTP.Server.Response
Portability
Stabilityprovisional
Maintainerdiatchki@galois.com
Description
Synopsis
data StatusCode
= OK
| SeeOther
| BadRequest
| Forbidden
| NotFound
| Found
| Conflict
| InternalServerError
| NotImplemented
err_response :: BufferType a => StatusCode -> Response a
respond :: BufferType a => StatusCode -> Response a
reason :: StatusCode -> String
statusCodeTriplet :: StatusCode -> (Int, Int, Int)
Documentation
data StatusCode Source
A list of status code. This not yet complete.
Constructors
OK
SeeOther
BadRequest
Forbidden
NotFound
Found
Conflict
InternalServerError
NotImplemented
err_response :: BufferType a => StatusCode -> Response aSource
Make a simple response with the given staus and body. Intended to be used for (bad) erros. Adds a close header.
respond :: BufferType a => StatusCode -> Response aSource
Make a simple response with the given staus and body. No headers or body.
reason :: StatusCode -> StringSource
A brief description of what happend.
statusCodeTriplet :: StatusCode -> (Int, Int, Int)Source
Produced by Haddock version 2.4.2