| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Servant.Server.Lucid
Synopsis
- htmlResponse :: Int -> [Header] -> Html () -> ServerError
- htmlResponse' :: ToHtml a => Int -> [Header] -> a -> ServerError
Documentation
Arguments
| :: Int | HTTP response status code |
| -> [Header] | |
| -> Html () | |
| -> ServerError |
Build a ServerError with an HTML body.
Note that ServerErrors, despite their name, can represent any type of
response, including successful ones.
Arguments
| :: ToHtml a | |
| => Int | HTTP response status code |
| -> [Header] | |
| -> a | |
| -> ServerError |
More general version of htmlResponse, that can have worse type
inference.