The warp package

[ Tags: benchmark, library, mit, web, yesod ] [ Propose Tags ]

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

Changelog

3.0.0
WAI no longer uses conduit for its streaming interface.
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.

Properties

Versions 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.7.2, 1.3.7.3, 1.3.7.4, 1.3.7.5, 1.3.8, 1.3.8.1, 1.3.8.2, 1.3.8.3, 1.3.8.4, 1.3.9, 1.3.9.1, 1.3.9.2, 1.3.10, 1.3.10.1, 1.3.10.2, 2.0.0, 2.0.0.1, 2.0.1, 2.0.2, 2.0.2.1, 2.0.3, 2.0.3.1, 2.0.3.2, 2.0.3.3, 2.0.3.4, 2.1.0, 2.1.1, 2.1.1.1, 2.1.1.2, 2.1.2, 2.1.2.1, 2.1.3, 2.1.3.1, 2.1.3.2, 2.1.3.3, 2.1.4, 2.1.4.1, 2.1.5, 2.1.5.1, 2.1.5.2, 3.0.0, 3.0.0.1, 3.0.0.2, 3.0.0.3, 3.0.0.4, 3.0.0.5, 3.0.0.6, 3.0.0.7, 3.0.0.8, 3.0.1, 3.0.1.1, 3.0.2, 3.0.2.1, 3.0.2.2, 3.0.2.3, 3.0.3, 3.0.4, 3.0.4.1, 3.0.5, 3.0.5.1, 3.0.5.2, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.9.1, 3.0.9.2, 3.0.9.3, 3.0.10, 3.0.10.1, 3.0.11, 3.0.12, 3.0.12.1, 3.0.13, 3.0.13.1, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.3.1, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.10, 3.1.11, 3.1.12, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9, 3.2.10, 3.2.11, 3.2.11.1, 3.2.11.2, 3.2.12, 3.2.13 (info)
Dependencies array (<0.6), base (>=3 && <4.8), blaze-builder (>=0.3.3 && <0.4), bytestring (>=0.9.1.4 && <0.11), case-insensitive (>=0.2 && <1.3), ghc-prim, hashable (<1.3), http-date (<0.1), http-types (>=0.8.5 && <0.10), network (>=2.2.1.5 && <2.2.3 || >=2.3 && <2.7), network-bytestring (==0.1.3.*), old-locale, simple-sendfile (>=0.2.7 && <0.3), streaming-commons (>=0.1.2 && <0.2), text (<1.3), time, unix (<2.8), unix-compat (>=0.2 && <0.5), void (<0.8), wai (>=3.0 && <3.0.4) [details]
License MIT
Author Michael Snoyman, Kazu Yamamoto, Matt Brown
Maintainer michael@snoyman.com
Category Web, Yesod
Home page http://github.com/yesodweb/wai
Source repository head: git clone git://github.com/yesodweb/wai.git
Uploaded Mon Jun 9 09:29:10 UTC 2014 by MichaelSnoyman
Updated Sun Jun 11 18:21:47 UTC 2017 by HerbertValerioRiedel to revision 2
Distributions Arch:3.2.13, Debian:3.1.12, Fedora:3.2.11, FreeBSD:3.1.3, LTSHaskell:3.2.13, NixOS:3.2.13, Stackage:3.2.13, Tumbleweed:3.2.13
Downloads 131483 total (2705 in the last 30 days)
Rating 2.5 (votes: 4) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Flags

NameDescriptionDefaultType
network-bytestringDisabledAutomatic
allow-sendfilefd

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

EnabledAutomatic
warp-debug

print debug output. not suitable for production

DisabledAutomatic

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

For package maintainers and hackage trustees