on master help sign in
doc update.
commitcb86f7ab40f8e1eb88e1fad2f3ad1a000ca4d717 authorKazu Yamamoto <kazu@iij.ad.jp> dateWed 17 Jun 2015, 10:57 (11 years ago) parentb5e394d
1 file changed+11−3
warp/Network/Wai/Handler/Warp/Types.hs+11−3
warp/Network/Wai/Handler/Warp/Types.hs+11−3
@@ -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----------------------------------------------------------------