@@ -138,19 +138,20 @@ checkPartRange fileSize = checkPart
138138-- There are three basic APIs to create 'Response':
139139--
140140-- ['responseFile' :: 'H.Status' -> 'H.ResponseHeaders' -> 'FilePath' -> 'Maybe' 'FilePart' -> 'Response']
141−-- HTTP response body is sent by sendfile().
141+-- HTTP response body is sent by sendfile() for GET method.
142+-- HTTP response body is not sent by HEAD method.
142143-- Applications are categorized into simple and sophisticated.
143144-- Simple applications should specify 'Nothing' to
144145-- 'Maybe' 'FilePart'. The size of the specified file is obtained
145146-- by disk access. Then Range is handled.
146147-- Sophisticated applications should specify 'Just' to
147148-- 'Maybe' 'FilePart'. They should treat Range (and If-Range) by
148−-- thierselves. In both cases,
149+-- themselves. In both cases,
149150-- Content-Length and Content-Range (if necessary) are automatically
150151-- added into the HTTP response header.
151152-- If Content-Length and Content-Range exist in the HTTP response header,
152153-- they would cause inconsistency.
153−-- Status is also changed to 206 if necessary.
154+-- Status is also changed to 206 (Partial Content) if necessary.
154155--
155156-- ['responseBuilder' :: 'H.Status' -> 'H.ResponseHeaders' -> 'Builder' -> 'Response']
156157-- HTTP response body is created from 'Builder'.