@@ -84,15 +84,23 @@ type Buffer = Ptr Word8
8484type BufSize = Int
8585
8686-- | Data type to manipulate IO actions for connections.
87−data Connection = Connection
88− { connSendMany :: [ByteString] -> IO ()
87+data Connection = Connection {
88+ -- | This is not used at this moment.
89+ connSendMany :: [ByteString] -> IO ()
90+ -- | The sending function.
8991 , connSendAll :: ByteString -> IO ()
92+ -- | The sending function for files in HTTP/1.1.
9093 , connSendFile :: SendFile
94+ -- | The connection closing function.
9195 , connClose :: IO ()
96+ -- | The connection receiving function.
9297 , connRecv :: IO ByteString
98+ -- | This is not used at this moment.
9399 , connBufferPool :: BufferPool
100+ -- | The write buffer.
94101 , connWriteBuffer :: Buffer
95− , connBufferSize :: BufSize -- ^ The size of 'connWriteBuffer'
102+ -- | The size of the write buffer.
103+ , connBufferSize :: BufSize
96104 }
97105
98106----------------------------------------------------------------