warp: A fast, light-weight web server for WAI applications.

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

The premier WAI handler. For more information, see http://steve.vinoski.net/blog/2011/05/01/warp-a-haskell-web-server/.

Changelog

2.1.0
The onOpen and onClose settings now provide the SockAddr of the client, and onOpen can return a Bool which will close the connection. The responseRaw response has been added, which provides a more elegant way to handle WebSockets than the previous settingsIntercept. The old settings accessors have been deprecated in favor of new setters, which will allow settings changes to be made in the future without breaking backwards compatibility.
2.0.0
ResourceT is not used anymore. Request and Response is now abstract data types. To use their constructors, Internal module should be imported.
1.3.9
Support for byte range requests.
1.3.7
Sockets now have FD_CLOEXEC set on them. This behavior is more secure, and the change should not affect the vast majority of use cases. However, it appeared that this is buggy and is fixed in 2.0.0.

Flags

Automatic Flags
NameDescriptionDefault
network-bytestringDisabled
allow-sendfilefd

Allow use of sendfileFd (not available on GNU/kFreeBSD)

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

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.3.0, 0.3.1, 0.3.2, 0.3.2.1, 0.3.2.2, 0.3.2.3, 0.3.3, 0.4.0, 0.4.0.1, 0.4.1, 0.4.1.1, 0.4.1.2, 0.4.2, 0.4.3, 0.4.3.1, 0.4.4, 0.4.5, 0.4.6, 0.4.6.1, 0.4.6.2, 0.4.6.3, 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.1, 1.2.1.1, 1.2.2, 1.3.0, 1.3.0.1, 1.3.1, 1.3.1.1, 1.3.1.2, 1.3.2, 1.3.3, 1.3.3.1, 1.3.3.2, 1.3.3.3, 1.3.4, 1.3.4.1, 1.3.4.2, 1.3.4.3, 1.3.4.4, 1.3.5, 1.3.5.1, 1.3.6, 1.3.7, 1.3.7.1, 1.3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10, 3.3.11, 3.3.12, 3.3.13, 3.3.14, 3.3.15, 3.3.16, 3.3.17, 3.3.18, 3.3.19, 3.3.20, 3.3.21, 3.3.22, 3.3.23, 3.3.24, 3.3.25, 3.3.26, 3.3.27, 3.3.28, 3.3.29, 3.3.30, 3.3.31, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4 (info)
Dependencies array, base (>=3 && <5), blaze-builder (>=0.3.3 && <0.4), blaze-builder-conduit (>=0.5 && <1.1), bytestring (>=0.9.1.4), case-insensitive (>=0.2), conduit (>=0.5 && <1.1), ghc-prim, hashable, http-date, http-types (>=0.7), lifted-base (>=0.1), network (>=2.2.1.5 && <2.2.3 || >=2.3 && <2.9), network-bytestring (>=0.1.3 && <0.1.4), network-conduit (>=0.5 && <1.1), old-locale, simple-sendfile (>=0.2.7 && <0.3), time, transformers (>=0.2.2 && <0.4), unix, unix-compat (>=0.2), void, wai (>=2.1 && <2.2) [details]
License MIT
Author Michael Snoyman, Kazu Yamamoto, Matt Brown
Maintainer michael@snoyman.com
Revised Revision 1 made by HerbertValerioRiedel at 2019-01-21T08:45:29Z
Category Web, Yesod
Home page http://github.com/yesodweb/wai
Source repo head: git clone git://github.com/yesodweb/wai.git
Uploaded by MichaelSnoyman at 2014-03-11T17:58:00Z
Distributions Arch:3.3.30, Debian:3.3.13, Fedora:3.3.25, FreeBSD:3.1.3, LTSHaskell:3.3.31, NixOS:3.3.31, Stackage:3.4.4, openSUSE:3.3.31
Reverse Dependencies 204 direct, 3402 indirect [details]
Downloads 369276 total (2217 in the last 30 days)
Rating 2.75 (votes: 11) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 1 reports]