2010-01-31 00:53:27 +03:00
|
|
|
Name: wai-extra
|
2015-04-08 18:15:53 +03:00
|
|
|
Version: 3.0.7
|
2010-01-31 00:53:27 +03:00
|
|
|
Synopsis: Provides some basic WAI handlers and middleware.
|
2015-02-24 17:14:23 +03:00
|
|
|
description:
|
|
|
|
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>.
|
|
|
|
|
2012-04-03 11:41:15 +04:00
|
|
|
License: MIT
|
2010-01-31 00:53:27 +03:00
|
|
|
License-file: LICENSE
|
|
|
|
Author: Michael Snoyman
|
|
|
|
Maintainer: michael@snoyman.com
|
2011-08-19 09:43:05 +04:00
|
|
|
Homepage: http://github.com/yesodweb/wai
|
2010-01-31 00:53:27 +03:00
|
|
|
Category: Web
|
|
|
|
Build-Type: Simple
|
2011-08-04 17:40:02 +04:00
|
|
|
Cabal-Version: >=1.8
|
2010-01-31 00:53:27 +03:00
|
|
|
Stability: Stable
|
2011-09-23 17:23:11 +04:00
|
|
|
extra-source-files:
|
2011-11-26 17:57:29 +04:00
|
|
|
test/requests/dalvik-request
|
2011-09-23 17:23:11 +04:00
|
|
|
test/json
|
|
|
|
test/test.html
|
|
|
|
test/sample.hs
|
2014-12-13 20:29:49 +03:00
|
|
|
ChangeLog.md
|
|
|
|
README.md
|
2010-01-31 00:53:27 +03:00
|
|
|
|
|
|
|
Library
|
2011-11-23 08:19:39 +04:00
|
|
|
Build-Depends: base >= 4 && < 5
|
2012-04-29 10:35:38 +04:00
|
|
|
, bytestring >= 0.9.1.4
|
2014-05-22 10:19:43 +04:00
|
|
|
, wai >= 3.0 && < 3.1
|
2011-11-23 08:19:39 +04:00
|
|
|
, old-locale >= 1.0.0.2 && < 1.1
|
2011-11-28 21:02:49 +04:00
|
|
|
, time >= 1.1.4
|
2012-09-19 10:01:42 +04:00
|
|
|
, network >= 2.2.1.5
|
2012-09-09 17:01:04 +04:00
|
|
|
, directory >= 1.0.1
|
2014-05-11 09:01:42 +04:00
|
|
|
, transformers >= 0.2.2
|
2015-02-22 16:12:03 +03:00
|
|
|
, blaze-builder >= 0.2.1.4 && < 0.5
|
2013-01-28 23:40:21 +04:00
|
|
|
, http-types >= 0.7
|
2013-12-04 16:56:08 +04:00
|
|
|
, text >= 0.7
|
2011-11-28 21:02:49 +04:00
|
|
|
, case-insensitive >= 0.2
|
2014-05-29 08:25:32 +04:00
|
|
|
, data-default-class
|
2015-02-26 08:10:55 +03:00
|
|
|
, fast-logger >= 2.1 && < 2.4
|
2014-08-01 09:36:10 +04:00
|
|
|
, wai-logger >= 2.0 && < 2.3
|
2012-02-17 05:53:51 +04:00
|
|
|
, ansi-terminal
|
2014-03-27 18:30:24 +04:00
|
|
|
, resourcet >= 0.4.6 && < 1.2
|
2013-03-24 10:02:17 +04:00
|
|
|
, void >= 0.5
|
2012-06-14 05:30:00 +04:00
|
|
|
, stringsearch >= 0.3 && < 0.4
|
2013-03-12 17:18:28 +04:00
|
|
|
, containers
|
2013-04-10 12:57:08 +04:00
|
|
|
, base64-bytestring
|
|
|
|
, word8
|
2014-01-30 10:25:06 +04:00
|
|
|
, lifted-base >= 0.1.2
|
2014-05-22 11:12:42 +04:00
|
|
|
, deepseq
|
2014-05-22 16:36:43 +04:00
|
|
|
, streaming-commons
|
2015-01-05 15:23:48 +03:00
|
|
|
, unix-compat
|
2015-03-30 00:32:45 +03:00
|
|
|
, cookie
|
2015-04-09 10:27:24 +03:00
|
|
|
, vault
|
2011-11-23 08:19:39 +04:00
|
|
|
|
2014-03-13 16:14:01 +04:00
|
|
|
if os(windows)
|
|
|
|
cpp-options: -DWINDOWS
|
|
|
|
else
|
|
|
|
build-depends: unix
|
|
|
|
|
2010-01-31 00:53:27 +03:00
|
|
|
Exposed-modules: Network.Wai.Handler.CGI
|
2014-03-21 16:36:26 +04:00
|
|
|
Network.Wai.Handler.SCGI
|
2011-02-06 00:47:19 +03:00
|
|
|
Network.Wai.Middleware.AcceptOverride
|
2014-12-13 03:47:34 +03:00
|
|
|
Network.Wai.Middleware.AddHeaders
|
2015-04-09 10:27:24 +03:00
|
|
|
Network.Wai.Middleware.Approot
|
2010-12-27 17:55:39 +03:00
|
|
|
Network.Wai.Middleware.Autohead
|
2010-01-31 00:53:27 +03:00
|
|
|
Network.Wai.Middleware.CleanPath
|
2014-06-24 02:41:15 +04:00
|
|
|
Network.Wai.Middleware.Local
|
2011-12-25 16:46:34 +04:00
|
|
|
Network.Wai.Middleware.RequestLogger
|
2010-01-31 00:53:27 +03:00
|
|
|
Network.Wai.Middleware.Gzip
|
|
|
|
Network.Wai.Middleware.Jsonp
|
2011-02-02 13:15:51 +03:00
|
|
|
Network.Wai.Middleware.MethodOverride
|
2012-04-19 08:54:32 +04:00
|
|
|
Network.Wai.Middleware.MethodOverridePost
|
2011-02-22 18:28:14 +03:00
|
|
|
Network.Wai.Middleware.Rewrite
|
2010-12-27 17:55:39 +03:00
|
|
|
Network.Wai.Middleware.Vhost
|
2013-04-10 12:57:08 +04:00
|
|
|
Network.Wai.Middleware.HttpAuth
|
2014-12-21 15:53:56 +03:00
|
|
|
Network.Wai.Middleware.StreamFile
|
2015-04-08 18:17:11 +03:00
|
|
|
Network.Wai.Middleware.ForceSSL
|
2010-05-18 13:46:33 +04:00
|
|
|
Network.Wai.Parse
|
2015-04-07 22:05:33 +03:00
|
|
|
Network.Wai.Request
|
2014-01-04 04:11:15 +04:00
|
|
|
Network.Wai.UrlMap
|
2014-05-22 11:12:42 +04:00
|
|
|
Network.Wai.Test
|
2014-05-22 21:39:38 +04:00
|
|
|
Network.Wai.EventSource
|
|
|
|
Network.Wai.EventSource.EventStream
|
2013-11-04 13:06:32 +04:00
|
|
|
other-modules: Network.Wai.Middleware.RequestLogger.Internal
|
2010-05-14 09:26:02 +04:00
|
|
|
ghc-options: -Wall
|
2010-10-10 12:18:07 +04:00
|
|
|
|
2014-05-22 11:12:42 +04:00
|
|
|
test-suite spec
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
hs-source-dirs: test
|
|
|
|
main-is: Spec.hs
|
|
|
|
other-modules: Network.Wai.TestSpec
|
2014-11-01 17:44:05 +03:00
|
|
|
Network.Wai.ParseSpec
|
2015-04-09 10:27:24 +03:00
|
|
|
Network.Wai.RequestSpec
|
|
|
|
Network.Wai.Middleware.ApprootSpec
|
|
|
|
Network.Wai.Middleware.ForceSSLSpec
|
2014-11-01 16:16:19 +03:00
|
|
|
WaiExtraSpec
|
2014-05-22 11:12:42 +04:00
|
|
|
build-depends: base >= 4 && < 5
|
2014-05-22 17:29:49 +04:00
|
|
|
, wai-extra
|
2014-05-22 11:12:42 +04:00
|
|
|
, wai
|
|
|
|
, hspec >= 1.3
|
2014-11-01 16:16:19 +03:00
|
|
|
, transformers
|
|
|
|
, fast-logger
|
|
|
|
, http-types
|
|
|
|
, zlib
|
|
|
|
, text
|
|
|
|
, resourcet
|
|
|
|
, bytestring
|
|
|
|
, HUnit
|
2015-04-01 23:08:47 +03:00
|
|
|
, blaze-builder
|
|
|
|
, cookie
|
|
|
|
, time
|
2014-05-22 11:12:42 +04:00
|
|
|
ghc-options: -Wall -Werror
|
|
|
|
|
2010-10-10 12:18:07 +04:00
|
|
|
source-repository head
|
|
|
|
type: git
|
2011-07-22 18:02:16 +04:00
|
|
|
location: git://github.com/yesodweb/wai.git
|