@hackage / wai-extra

Provides some basic WAI handlers and middleware.

Latest3.1.18

About

Metadata

  • Last updated , by nideco
  • License MIT
  • Categories Web Development
  • Maintained by: michael@snoyman.com

  • Lottery factor: 3

Links

Installation

Package Flags

Use the -f option with cabal commands to enable flags

    build-example (off by default)

    Build example executable.

Readme

wai-extra

The goal here is to provide common features without many dependencies.

Example using Server-Sent Events

There is a small example using Server-Sent Events (SSE) in the ./example directory.

Run the commands below to start the server on http://localhost:8080

$ stack build .
$ stack exec example