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) }

#dispatch Source

#stopListener Source

#defaultOptions Source