The warp package

[Tags:library, mit]

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.

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 (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), network-bytestring (==0.1.3.*), 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.*) [details]
License MIT
Author Michael Snoyman, Kazu Yamamoto, Matt Brown
Maintainer michael@snoyman.com
Stability Stable
Category Web, Yesod
Home page http://github.com/yesodweb/wai
Source repository head: git clone git://github.com/yesodweb/wai.git
Uploaded Thu Mar 20 02:24:51 UTC 2014 by MichaelSnoyman
Distributions Arch:3.2.7, Debian:3.1.12, Fedora:3.0.0.5, FreeBSD:3.1.3, LTSHaskell:3.2.7, NixOS:3.2.7, Stackage:3.2.7
Downloads 102771 total (649 in the last 30 days)
Votes
4 []
Status Docs available [build log]
Successful builds reported [all 1 reports]

Modules

[Index]

Flags

NameDescriptionDefaultType
network-bytestringDisabledAutomatic
allow-sendfilefdAllow use of sendfileFd (not available on GNU/kFreeBSD)EnabledAutomatic

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

Downloads

Maintainer's Corner

For package maintainers and hackage trustees