Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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
ServerConfig | |
|
Instances
Default ServerConfig | |
Defined in Mig.Server.Wai def :: ServerConfig # |
data FindRouteType #
Algorithm to find route handlers by path
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
CacheConfig | |
|