@@ -355,10 +355,11 @@ data Request = Request
355 -- all information after the domain name. In a CGI application, this would be
355 -- all information after the domain name. In a CGI application, this would be
356 -- the information following the path to the CGI executable itself.
356 -- the information following the path to the CGI executable itself.
357 , pathInfo :: B.ByteString
357 , pathInfo :: B.ByteString
358+ -- | If no query string was specified, this should be empty.
358 , queryString :: B.ByteString
359 , queryString :: B.ByteString
359 , serverName :: B.ByteString
360 , serverName :: B.ByteString
360 , serverPort :: Int
361 , serverPort :: Int
361− , httpHeaders :: [(RequestHeader, B.ByteString)]
362+ , requestHeaders :: [(RequestHeader, B.ByteString)]
362 , urlScheme :: UrlScheme
363 , urlScheme :: UrlScheme
363 , requestBody :: forall a. Enumerator a
364 , requestBody :: forall a. Enumerator a
364 , errorHandler :: String -> IO ()
365 , errorHandler :: String -> IO ()
@@ -367,13 +368,13 @@ data Request = Request
369data Response = Response
370data Response = Response
370− { status :: Status
371+ { status :: Status
371− , headers :: [(ResponseHeader, B.ByteString)]
372+ , responseHeaders :: [(ResponseHeader, B.ByteString)]
372 -- | A common optimization is to use the sendfile system call when sending
373 -- | A common optimization is to use the sendfile system call when sending
373 -- files from the disk. This datatype facilitates this optimization; if
374 -- files from the disk. This datatype facilitates this optimization; if
374 -- 'Left' is returns, the server will send the file from the disk by whatever
375 -- 'Left' is returns, the server will send the file from the disk by whatever
375 -- means it wishes. If 'Right', it will call the 'Enumerator'.
376 -- 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)
379type Application = Request -> IO Response
380type Application = Request -> IO Response