on master help sign in
doc update.
commitcaeb8d950c7e480dcf8665649492a2e581e9bdd6 authorKazu Yamamoto <kazu@iij.ad.jp> dateMon 4 Nov 2013, 06:57 (13 years ago) parent54f01c3
1 file changed+11
warp/Network/Wai/Handler/Warp/Response.hs+11
warp/Network/Wai/Handler/Warp/Response.hs+11
@@ -88,6 +88,17 @@ checkPartRange fileSize mPart mRange = checkPart mPart mRange
8888
8989-- | Sending a HTTP response to 'Connection' according to 'Response'.
9090--
91+-- Applications/middlewares MUST specify a proper 'H.ResponseHeaders'.
92+-- so that inconsistency does not happen.
93+-- No header is deleted by this function.
94+--
95+-- Especially, Applications/middlewares MUST take care of
96+-- Content-Length, Content-Range, and Transfer-Encoding
97+-- because they are inserted, when necessary,
98+-- regardless they alredy exist.
99+-- This function does not insert Content-Encoding. It's middleware's
100+-- responsibility.
101+--
91102-- The Server header is added if not exist in HTTP response header.
92103--
93104-- There are three basic APIs to create 'Response':