Safe HaskellNone

Ketchup.Chunked

Synopsis

Documentation

chunkHeaders

Arguments

∷ Socket

Socket to write to

→ Int

Status code

→ [(ByteString, [ByteString])]

Headers

→ IO () 

Send HTTP reply headers and begin a Chunked transmission

chunk

Arguments

∷ Socket

Socket to write to

→ ByteString

Content to write

→ IO () 

Sends a chunk

endchunk

Arguments

∷ Socket

Socket to write to

→ IO () 

Send the final/closing chunk