| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Canteven.Listen.HTTP
Description
Types for the canteven-serve-with-ekg library.
- data ListenerConfig = ListenerConfig {}
- newtype ListenHTTPConfig = ListenHTTPConfig {
- listeners :: [ListenerConfig]
- data Scheme
- data WithListenHTTPConfig userConfig = WithListenHTTPConfig {
- listenConfig :: ListenHTTPConfig
- userConfig :: userConfig
Documentation
data ListenerConfig Source #
A type representing a single "listener".
An application can listen to many of these
Constructors
| ListenerConfig | |
Instances
newtype ListenHTTPConfig Source #
Toplevel type to parse listeners out of a config file.
Constructors
| ListenHTTPConfig | |
Fields
| |
Instances
data WithListenHTTPConfig userConfig Source #
A type that adds a ListenHTTPConfig to any other config.
Constructors
| WithListenHTTPConfig | |
Fields
| |
Instances
| Generic (WithListenHTTPConfig userConfig) Source # | |
| FromJSON c => FromJSON (WithListenHTTPConfig c) Source # | |
| type Rep (WithListenHTTPConfig userConfig) Source # | |