@@ -355,10 +355,11 @@ data Request = Request
355355 -- all information after the domain name. In a CGI application, this would be
356356 -- the information following the path to the CGI executable itself.
357357 , pathInfo :: B.ByteString
358+ -- | If no query string was specified, this should be empty.
358359 , queryString :: B.ByteString
359360 , serverName :: B.ByteString
360361 , serverPort :: Int
361− , httpHeaders :: [(RequestHeader, B.ByteString)]
362+ , requestHeaders :: [(RequestHeader, B.ByteString)]
362363 , urlScheme :: UrlScheme
363364 , requestBody :: forall a. Enumerator a
364365 , errorHandler :: String -> IO ()
@@ -367,13 +368,13 @@ data Request = Request
367368 }
368369
369370data Response = Response
370− { status :: Status
371− , headers :: [(ResponseHeader, B.ByteString)]
371+ { status :: Status
372+ , responseHeaders :: [(ResponseHeader, B.ByteString)]
372373 -- | A common optimization is to use the sendfile system call when sending
373374 -- files from the disk. This datatype facilitates this optimization; if
374375 -- 'Left' is returns, the server will send the file from the disk by whatever
375376 -- means it wishes. If 'Right', it will call the 'Enumerator'.
376− , body :: forall a. Either FilePath (Enumerator a)
377+ , responseBody :: forall a. Either FilePath (Enumerator a)
377378 }
378379
379380type Application = Request -> IO Response