wai-extra: Provides some basic WAI handlers and middleware.

[ library, mit, web ] [ Propose Tags ] [ Report a vulnerability ]

Provides basic WAI handler and middleware functionality:

  • WAI Testing Framework

Hspec testing facilities and helpers for WAI.

  • Event Source/Event Stream

Send server events to the client. Compatible with the JavaScript EventSource API.

  • Accept Override

Override the Accept header in a request. Special handling for the _accept query parameter (which is used throughout WAI override the Accept header).

  • Add Headers

WAI Middleware for adding arbitrary headers to an HTTP request.

  • Clean Path

Clean a request path to a canonical form.

  • GZip Compression

Negotiate HTTP payload gzip compression.

  • HTTP Basic Authentication

WAI Basic Authentication Middleware which uses Authorization header.

  • JSONP

"JSON with Padding" middleware. Automatic wrapping of JSON responses to convert into JSONP.

  • Method Override / Post

Allows overriding of the HTTP request method via the _method query string parameter.

  • Request Logging

Request logging middleware for development and production environments

  • Request Rewrite

Rewrite request path info based on a custom conversion rules.

  • Stream Files

Convert ResponseFile type responses into ResponseStream type.

  • Virtual Host

Redirect incoming requests to a new host based on custom rules.

API docs and the README are available at http://www.stackage.org/package/wai-extra.


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.0, 0.0.0.1, 0.0.0.2, 0.1.0, 0.1.1, 0.1.2, 0.1.2.1, 0.1.3, 0.1.3.1, 0.2.0, 0.2.1, 0.2.2, 0.2.2.1, 0.2.2.2, 0.2.3, 0.2.4, 0.2.4.1, 0.2.4.2, 0.3.0, 0.3.1, 0.3.2, 0.3.2.1, 0.3.3, 0.4.0, 0.4.0.1, 0.4.0.2, 0.4.0.3, 0.4.1.1, 0.4.1.2, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.5.1, 0.4.5.2, 0.4.6, 1.0.0, 1.0.0.1, 1.1.0, 1.1.0.1, 1.2.0, 1.2.0.1, 1.2.0.2, 1.2.0.3, 1.2.0.4, 1.2.0.5, 1.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.1.14, 3.1.15, 3.1.16, 3.1.17 (info)
Change log ChangeLog.md
Dependencies ansi-terminal, base (>=4 && <5), base64-bytestring, blaze-builder (>=0.2.1.4 && <0.5), bytestring (>=0.9.1.4), case-insensitive (>=0.2), containers, cookie, data-default-class, deepseq, directory (>=1.0.1), fast-logger (>=2.1 && <2.4), http-types (>=0.7), lifted-base (>=0.1.2), network (>=2.2.1.5), old-locale (>=1.0.0.2 && <1.1), resourcet (>=0.4.6 && <1.2), streaming-commons (<0.2), stringsearch (>=0.3 && <0.4), text (>=0.7), time (>=1.1.4), transformers (>=0.2.2), unix, unix-compat, vault, void (>=0.5), wai (>=3.0.3.0 && <3.1), wai-logger (>=2.0 && <2.3), word8 [details]
License MIT
Author Michael Snoyman
Maintainer michael@snoyman.com
Revised Revision 1 made by HerbertValerioRiedel at 2019-02-13T17:32:07Z
Category Web
Home page http://github.com/yesodweb/wai
Source repo head: git clone git://github.com/yesodweb/wai.git
Uploaded by MichaelSnoyman at 2015-07-05T06:18:02Z
Distributions Arch:3.1.15, Debian:3.0.29.2, Fedora:3.1.13.0, FreeBSD:3.0.10, LTSHaskell:3.1.15, NixOS:3.1.15, Stackage:3.1.16, openSUSE:3.1.15
Reverse Dependencies 135 direct, 3471 indirect [details]
Downloads 254388 total (1096 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-07-05 [all 1 reports]

Readme for wai-extra-3.0.8.0

[back to package description]

wai-extra

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