Skip to content

purerl/purescript-erl-cowboy

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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.