2 | import public FS.Posix
3 | import public HTTP.RequestErr
4 | import public IO.Async.Logging
5 | import public IO.Async.Loop.Posix
6 | import public IO.Async.Posix
7 | import public IO.Async.Service
17 | 0 HTTPProg : (es : List Type) -> (a : Type) -> Type
18 | HTTPProg = Async Poll
23 | HTTPLogger = Logger Poll
32 | 0 HTTPPull : (o : Type) -> (es : List Type) -> (r : Type) -> Type
33 | HTTPPull = Pull HTTPProg
43 | 0 HTTPStream : (es : List Type) -> (o : Type) -> Type
44 | HTTPStream = Stream HTTPProg
48 | 0 HTTPService : (req : Type) -> (resp : req -> Type) -> Type
49 | HTTPService = Service Poll [RequestErr]
53 | 0 ErrorHandler : (e : Type) -> Type
54 | ErrorHandler e = e -> HTTPProg [] ()
57 | 0 Handler : Type -> Type
58 | Handler = HTTPProg [RequestErr]