Safe Haskell | None |
---|---|
Language | Haskell98 |
Contains web handlers to stream files
Synopsis
- serveStreamAs :: MonadSnap m => ByteString -> Word64 -> (Word64 -> Word64 -> OutputStream Builder -> IO ()) -> (OutputStream Builder -> IO ()) -> m ()
- data RangeReq
- rangeParser :: Parser RangeReq
- checkRangeReq :: MonadSnap m => Request -> (Word64 -> Word64 -> OutputStream Builder -> IO ()) -> Word64 -> m Bool
- fromShow :: Show a => a -> Builder
Documentation
:: MonadSnap m | |
=> ByteString | MIME type |
-> Word64 | |
-> (Word64 -> Word64 -> OutputStream Builder -> IO ()) | |
-> (OutputStream Builder -> IO ()) | |
-> m () |
Same as serveFile
, with control over the MIME mapping used and streamed