Home

Awesome

purescript-erl-cowboy

Bindings to the cowboy web server. Bindings currently tested against version 2.8, but other versions may be used subject to underlying cowboy API compatibility.

Usage

Firstly this package contains bindings to cowboy, it must be used in an OTP application where cowboy is installed at a suitable version.

To construct a working cowboy application, the definitions in Erl.Cowboy 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.

Examples can be found in the pscowboytest test project.