Copyright | (c) 2015 Peter Trško |
---|---|
License | BSD3 |
Maintainer | peter.trsko@gmail.com |
Stability | unstable (internal module) |
Portability | GHC specific language extensions. |
Safe Haskell | Safe |
Language | Haskell2010 |
Internal packages are here to provide access to internal definitions for library writers, but they should not be used in application code.
Preferably use qualified import, e.g.:
import qualified Data.ConnectionPool.Internal.HandlerParams as Internal
This module doesn't depend on streaming-commons. Another notable thing is that this package is not OS specific. Please, bear this in mind when doing modifications.
Since version 0.1.3.
- data HandlerParams = HandlerParams {
- _readBufferSize :: !Int
- readBufferSize :: Functor f => (Int -> f Int) -> HandlerParams -> f HandlerParams
Documentation
data HandlerParams Source #
Additional parameters passed to connection handler that aren't part of specific connection context.
Since version 0.1.3.
HandlerParams | |
|
Data HandlerParams Source # | |
Show HandlerParams Source # | |
Generic HandlerParams Source # | |
Default HandlerParams Source # |
Package streaming-commons < 0.1.13 used value 4096, streaming-commons == 0.1.13 used 32768, which is 8 * 4096, based on: issue #22 |
HasConnectionPool HandlerParams Socket () (ConnectionPool * UnixClient) Source # | Since version 0.2. |
HasConnectionPool HandlerParams Socket SockAddr (ConnectionPool * TcpClient) Source # | Since version 0.2. |
type Rep HandlerParams Source # | |
readBufferSize :: Functor f => (Int -> f Int) -> HandlerParams -> f HandlerParams Source #
Lens for accessing read buffer size that handler should use when reading data from connection.
Since version 0.1.3.