¤ okResponse, notFoundResponse, et al

HTTP related types

Types

okResponse :: String -> HttpResponse
notFoundResponse :: [Char] -> HttpResponse
badQueryResponse :: String -> HttpResponse
notImplementedResponse :: String -> HttpResponse

Description

These functions provide convenient ways to construct common HTTP responses containing HTML documents.

In all cases, the content is marked as having Mime type text/html, so the String argument should be some HTML text.

Equalities

okResponse = okResponse' htmlType
notFoundResponse = notImplementedResponse' htmlType
badQueryResponse = badQueryResponse' htmlType
notImplementedResponse = notImplementedResponse' htmlType

See Also

Returning other types of documents: okResponse' et al.