Ketchup-0.4.3: A super small web framework for those who don't like big and fancy codebases

Safe HaskellNone
LanguageHaskell98

Ketchup.Chunked

Synopsis

Documentation

chunkHeaders Source

Arguments

:: Socket

Socket to write to

-> Int

Status code

-> [(ByteString, [ByteString])]

Headers

-> IO () 

Send HTTP reply headers and begin a Chunked transmission

chunk Source

Arguments

:: Socket

Socket to write to

-> ByteString

Content to write

-> IO () 

Sends a chunk

endchunk Source

Arguments

:: Socket

Socket to write to

-> IO () 

Send the final/closing chunk