Module
Erl.Cowboy
- Package
- erl-cowboy
- Repository
- purerl/purescript-erl-cowboy
Bindings for cowboy.
To construct a working cowboy application, the definitions here can be used with
routing defined in Erl.Cowboy.Routes, and one of the handlers defind in submodules of
Erl.Cowboy.Handlers. Core request processing is handled in Erl.Cowboy.Req.
#ProtocolOpts Source
type ProtocolOpts = { env :: Maybe Env, middlewares :: Maybe (List NativeModuleName), streamHandlers :: Maybe (List NativeModuleName) }#startClear Source
startClear :: Atom -> TcpOptions -> ProtocolOpts -> Effect (Either Foreign Unit)#startTls Source
startTls :: Atom -> SslOptions -> ProtocolOpts -> Effect (Either Foreign Unit)#defaultOptions Source
defaultOptions :: forall a. Record (RanchOptions a)