Package3.1.16Web
wai-extra
Provides some basic WAI handlers and middleware.
- Version3.1.16
- CategoryWeb
- LicenceMIT
- AuthorMichael Snoyman
- Maintainermichael@snoyman.com
- Homepagegithub.com/yesodweb/wai
- Pinned byhackage wai-extra 3.1.16
- Sourcehackage.haskell.org/package/wai-extra-3.1.16
Modules
38 modules- Network.Wai.EventSource4A WAI adapter to the HTML5 Server-Sent Events API. If running through a proxy like Nginx you might need to add the
- Network.Wai.EventSource.EventStream2Internal module, usually you don't need to use it.
- Network.Wai.Handler.CGI4Backend for Common Gateway Interface. Almost all users should use the
- Network.Wai.Handler.SCGI2
- Network.Wai.Header3Some helpers for dealing with WAI Headers.
- Network.Wai.Middleware.AcceptOverride1
- Network.Wai.Middleware.AddHeaders1Since 3.0.3
- Network.Wai.Middleware.Approot7Middleware for establishing the root of the application. Many application need the ability to create URLs referring back to the
- Network.Wai.Middleware.Autohead1Automatically produce responses to HEAD requests based on the underlying
- Network.Wai.Middleware.CleanPath1
- Network.Wai.Middleware.CombineHeaders13Sometimes incoming requests don't stick to the
- Network.Wai.Middleware.ForceDomain1
- Network.Wai.Middleware.ForceSSL1Redirect non-SSL requests to https Since 3.0.7
- Network.Wai.Middleware.Gzip9Automatic gzip compression of responses.
- Network.Wai.Middleware.HealthCheckEndpoint2Add empty endpoint (for Health check tests)
- Network.Wai.Middleware.HttpAuth9Implements HTTP Basic Authentication. This module may add digest authentication in the future.
- Network.Wai.Middleware.Jsonp1Automatic wrapping of JSON responses to convert into JSONP.
- Network.Wai.Middleware.Local1Only allow local connections.
- Network.Wai.Middleware.MethodOverride1
- Network.Wai.Middleware.MethodOverridePost1Changes the request-method via first post-parameter _method.
- Network.Wai.Middleware.RealIp5Infer the remote IP address using headers
- Network.Wai.Middleware.RequestLogger21
- Network.Wai.Middleware.RequestLogger.JSON3
- Network.Wai.Middleware.RequestSizeLimit5The functions in this module allow you to limit the total size of incoming request bodies. Limiting incoming request body size helps prot…
- Network.Wai.Middleware.Rewrite8
- Network.Wai.Middleware.Routed2Since 3.0.9
- Network.Wai.Middleware.Select6Dynamically choose between Middlewares It's useful when you want some Middlewares applied selectively. Example: do not log health check c…
- Network.Wai.Middleware.StreamFile1Since 3.0.4
- Network.Wai.Middleware.StripHeaders4
- Network.Wai.Middleware.Timeout3Timeout requests
- Network.Wai.Middleware.ValidateHeaders5This module provides a middleware to validate response headers.
- Network.Wai.Middleware.Vhost4
- Network.Wai.Parse33Some helpers for parsing data out of a raw WAI Request.
- Network.Wai.Request4Some helpers for interrogating a WAI Request.
- Network.Wai.Test24
- Network.Wai.UrlMap6This module gives you a way to mount applications under sub-URIs.
Internal modules · 2
- Network.Wai.Middleware.RequestSizeLimit.Internal3Internal constructors and helper functions. Note that no guarantees are given for stability of these interfaces.
- Network.Wai.Test.Internal5
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.
Combine Headers
Combine duplicate headers into one.
GZip Compression
Negotiate HTTP payload gzip compression.
Health check endpoint
Add an empty health check endpoint.
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.
Select
Dynamically choose between Middlewares.
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.
Depends on
27 packages- HUnit-1.6.2.0in this set
- aeson-2.2.3.0in this set
- ansi-terminal-1.1.3in this set
- base-4.20.2.0with GHC
- base64-bytestring-1.2.1.0in this set
- bytestring-0.12.2.0with GHC
- call-stack-0.4.0in this set
- case-insensitive-1.2.1.0in this set
- containers-0.7with GHC
- cookie-0.5.1in this set
- data-default-0.8.0.1in this set
- directory-1.3.8.5with GHC
- fast-logger-3.2.6in this set
- http-types-0.12.4in this set
- iproute-1.7.15in this set
- network-3.2.8.0in this set
- resourcet-1.3.0in this set
- streaming-commons-0.2.3.0in this set
- text-2.1.3with GHC
- time-1.12.2with GHC
- transformers-0.6.1.1with GHC
- unix-2.8.7.0with GHC
- vault-0.3.1.5in this set
- wai-3.2.4in this set
- wai-logger-2.5.0in this set
- warp-3.4.9in this set
- word8-0.1.3in this set