Safe Haskell | None |
---|---|
Language | Haskell2010 |
Haskus.Web.Response
Synopsis
- sendJson :: ByteString -> ServerPartT IO Response
- sendJS :: ByteString -> ServerPartT IO Response
- sendPNG :: ByteString -> ServerPartT IO Response
- sendJPG :: ByteString -> ServerPartT IO Response
- sendData :: String -> ByteString -> ServerPartT IO Response
- sendBinary :: ByteString -> ServerPartT IO Response
- sendLazyJson :: ByteString -> ServerPartT IO Response
- sendLazyData :: String -> ByteString -> ServerPartT IO Response
Documentation
sendJson :: ByteString -> ServerPartT IO Response Source #
Send JSON text
sendJS :: ByteString -> ServerPartT IO Response Source #
Send JS script
sendPNG :: ByteString -> ServerPartT IO Response Source #
Send a PNG image
sendJPG :: ByteString -> ServerPartT IO Response Source #
Send a JPG image
sendData :: String -> ByteString -> ServerPartT IO Response Source #
Send data with the given MIME content type
sendBinary :: ByteString -> ServerPartT IO Response Source #
Send binary data
sendLazyJson :: ByteString -> ServerPartT IO Response Source #
Send JSON text
sendLazyData :: String -> ByteString -> ServerPartT IO Response Source #
Send data with the given MIME content type