snap-stream-0.1: Streaming Snap handlers

Safe HaskellNone
LanguageHaskell98

Snap.Util.FileServe.Stream

Description

Contains web handlers to stream files

Synopsis

Documentation

serveStreamAs Source #

Arguments

:: 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