doc update.

This commit is contained in:
Kazu Yamamoto 2013-11-04 06:57:23 +09:00
parent 54f01c3a6a
commit caeb8d950c

View File

@ -88,6 +88,17 @@ checkPartRange fileSize mPart mRange = checkPart mPart mRange
-- | Sending a HTTP response to 'Connection' according to 'Response'.
--
-- Applications/middlewares MUST specify a proper 'H.ResponseHeaders'.
-- so that inconsistency does not happen.
-- No header is deleted by this function.
--
-- Especially, Applications/middlewares MUST take care of
-- Content-Length, Content-Range, and Transfer-Encoding
-- because they are inserted, when necessary,
-- regardless they alredy exist.
-- This function does not insert Content-Encoding. It's middleware's
-- responsibility.
--
-- The Server header is added if not exist in HTTP response header.
--
-- There are three basic APIs to create 'Response':