|
|
|
| Description |
| Utility functions to form HTTP response
|
|
| Synopsis |
|
|
|
| Documentation |
|
| response |
| :: Int | HTTP status code
| | -> [Header] | HTTP headers
| | -> String | Response body
| | -> HttpResponse | | | Generic response
|
|
|
| ok :: String -> HttpResponse |
| HTTP 200 OK response with given body (text/html)
|
|
| redirect :: String -> HttpResponse |
| HTTP 302 redirect response with given text
|
|
| redirectG |
|
|
| redirectP :: String -> HttpResponse |
| HTTP 301 redirect response with given text
|
|
| (<+>) :: HttpResponse -> Header -> HttpResponse |
| Add HTTP header to response
|
|
| (<++>) :: HttpResponse -> [Header] -> HttpResponse |
| Add list of HTTP headers to response
|
|
| Produced by Haddock version 2.4.2 |