Package3.1.18Web
wai-extra
Provides some basic WAI handlers and middleware.
- Version3.1.18
- CategoryWeb
- LicenceMIT
- AuthorMichael Snoyman
- Maintainermichael@snoyman.com
- Homepagegithub.com/yesodweb/wai
- Pinned byhackage wai-extra 3.1.18
- Sourcehackage.haskell.org/package/wai-extra-3.1.18
Modules
- Network.Wai.EventSourceA 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.EventStreamInternal module, usually you don't need to use it.
- Network.Wai.Handler.CGIBackend for Common Gateway Interface. Almost all users should use the
- Network.Wai.Handler.SCGI
- Network.Wai.HeaderSome helpers for dealing with WAI Headers.
- Network.Wai.Middleware.AcceptOverride
- Network.Wai.Middleware.AddHeadersSince 3.0.3
- Network.Wai.Middleware.ApprootMiddleware for establishing the root of the application. Many application need the ability to create URLs referring back to the
- Network.Wai.Middleware.AutoheadAutomatically produce responses to HEAD requests based on the underlying
- Network.Wai.Middleware.CleanPath
- Network.Wai.Middleware.CombineHeadersSometimes incoming requests don't stick to the
- Network.Wai.Middleware.ForceDomain
- Network.Wai.Middleware.ForceSSLRedirect non-SSL requests to https Since 3.0.7
- Network.Wai.Middleware.GzipAutomatic gzip compression of responses.
- Network.Wai.Middleware.HealthCheckEndpointAdd empty endpoint (for Health check tests)
- Network.Wai.Middleware.HttpAuthImplements HTTP Basic Authentication. This module may add digest authentication in the future.
- Network.Wai.Middleware.JsonpAutomatic wrapping of JSON responses to convert into JSONP.
- Network.Wai.Middleware.LocalOnly allow local connections.
- Network.Wai.Middleware.MethodOverride
- Network.Wai.Middleware.MethodOverridePostChanges the request-method via first post-parameter _method.
- Network.Wai.Middleware.RealIpInfer the remote IP address using headers
- Network.Wai.Middleware.RequestLogger
- Network.Wai.Middleware.RequestLogger.JSON
- Network.Wai.Middleware.RequestSizeLimitThe 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.Rewrite
- Network.Wai.Middleware.RoutedSince 3.0.9
- Network.Wai.Middleware.SelectDynamically choose between Middlewares It's useful when you want some Middlewares applied selectively. Example: do not log health check c…
- Network.Wai.Middleware.StreamFileSince 3.0.4
- Network.Wai.Middleware.StripHeaders
- Network.Wai.Middleware.TimeoutTimeout requests
- Network.Wai.Middleware.ValidateHeadersThis module provides a middleware to validate response headers.
- Network.Wai.Middleware.Vhost
- Network.Wai.ParseSome helpers for parsing data out of a raw WAI Request.
- Network.Wai.RequestSome helpers for interrogating a WAI Request.
- Network.Wai.Test
- Network.Wai.UrlMapThis module gives you a way to mount applications under sub-URIs.
Internal modules · 2
- Network.Wai.Middleware.RequestSizeLimit.InternalInternal constructors and helper functions. Note that no guarantees are given for stability of these interfaces.
- Network.Wai.Test.Internal
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.5.1in this set
- ansi-terminal-1.1.5in this set
- base-4.23.0.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.8with GHC
- cookie-0.5.1in this set
- data-default-0.8.0.2in this set
- directory-1.3.11.0with GHC
- fast-logger-3.2.7in this set
- http-types-0.12.6in this set
- iproute-1.7.15in this set
- network-3.2.9.0in this set
- resourcet-1.3.0in this set
- streaming-commons-0.2.3.1in this set
- text-2.1.4with GHC
- time-1.16.0.1with GHC
- transformers-0.6.3.0with GHC
- unix-2.8.8.0with GHC
- vault-0.3.2.0in this set
- wai-3.2.5in this set
- wai-logger-2.5.0in this set
- warp-3.4.16in this set
- word8-0.1.3in this set