| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Mig.Server.Warp
Description
Run mig-server with warp
Synopsis
- runServer :: Int -> Server IO -> IO ()
- runServer' :: ServerConfig -> Int -> Server IO -> IO ()
- data ServerConfig = ServerConfig {}
- data FindRouteType
- data CacheConfig = CacheConfig {
- size :: Int
- cacheFilter :: CacheKey -> Bool
Documentation
runServer' :: ServerConfig -> Int -> Server IO -> IO () Source #
data ServerConfig #
Server config
Constructors
| ServerConfig | |
Fields
| |
Instances
| Default ServerConfig | |
Defined in Mig.Server.Wai Methods def :: ServerConfig # | |
data FindRouteType #
Algorithm to find route handlers by path
Constructors
| TreeFinder | converts api to tree-like structure (prefer it for servers with many routes) |
| PlainFinder | no optimization (prefer it for small servers) |
data CacheConfig #
Cache config
Constructors
| CacheConfig | |
Fields
| |