0 | module HTTP.API.Server.Env
2 | import HTTP.API.Server.Interface
8 | interface LoadEnv (0 a : Type) where
9 | loadEnv : HTTPProg [RequestErr] a
12 | LoadEnv ReqTime where
13 | loadEnv = RT <$> liftIO (clockTime UTC)
17 | Constraint b = LoadEnv b.type
18 | InTypes b = [b.type]
21 | canHandle _ r = True
22 | fromRequest _ r = map (\x => [x]) loadEnv
23 | adjResponse _ [] req = pure