on master help sign in
fixing the doc for sendResponse.
commitcb4556d220aae2c7098fae4e85b5c49d9f233a2b authorKazu Yamamoto <kazu@iij.ad.jp> dateWed 4 Feb 2015, 20:38 (12 years ago) parentf3d601a
1 file changed+7−6
warp/Network/Wai/Handler/Warp/Response.hs+7−6
warp/Network/Wai/Handler/Warp/Response.hs+7−6
@@ -153,14 +153,15 @@ checkPartRange fileSize = checkPart
153153-- Status is also changed to 206 if necessary.
154154--
155155-- ['responseBuilder' :: 'H.Status' -> 'H.ResponseHeaders' -> 'Builder' -> 'Response']
156−-- HTTP response body is created from 'Source'.
157−-- Typically, Transfer-Encoding: chunked is used.
158−-- If Content-Length is specified, Transfer-Encoding: chunked is not used.
156+-- HTTP response body is created from 'Builder'.
157+-- Transfer-Encoding: chunked is used in HTTP/1.1.
159158--
160−-- ['responseSource' :: 'H.Status' -> 'H.ResponseHeaders' -> 'Source' 'IO' ('Flush' 'Builder') -> 'Response']
159+-- ['responseStream' :: 'H.Status' -> 'H.ResponseHeaders' -> 'StreamingBody' -> 'Response']
161160-- HTTP response body is created from 'Builder'.
162−-- Typically, Transfer-Encoding: chunked is used.
163−-- If Content-Length is specified, Transfer-Encoding: chunked is not used.
161+-- Transfer-Encoding: chunked is used in HTTP/1.1.
162+--
163+-- ['responseRaw' :: ('IO' 'ByteString' -> ('ByteString' -> 'IO' ()) -> 'IO' ()) -> 'Response' -> 'Response']
164+-- No header is added and no Transfer-Encoding: is applied.
164165
165166sendResponse :: ByteString -- ^ default server value
166167 -> Connection