wai-extra

Provides some basic WAI handlers and middleware.

http://github.com/yesodweb/wai

Version on this page:3.0.19.1
LTS Haskell 19.7:3.1.12.1
Stackage Nightly 2022-05-14:3.1.12
Latest on Hackage:3.1.12.1

See all snapshots wai-extra appears in

MIT licensed by Michael Snoyman
Maintained by michael@snoyman.com
This version can be pinned in stack with:wai-extra-3.0.19.1@sha256:8715f8e40822803ae4ca321c2a6b18755f02536a8b4faa1807b6e51b67ad4c9e,6504

Module documentation for 3.0.19.1

  • Network
    • Network.Wai
      • Network.Wai.EventSource
        • Network.Wai.EventSource.EventStream
      • Network.Wai.Handler
        • Network.Wai.Handler.CGI
        • Network.Wai.Handler.SCGI
      • Network.Wai.Header
      • Network.Wai.Middleware
        • Network.Wai.Middleware.AcceptOverride
        • Network.Wai.Middleware.AddHeaders
        • Network.Wai.Middleware.Approot
        • Network.Wai.Middleware.Autohead
        • Network.Wai.Middleware.CleanPath
        • Network.Wai.Middleware.ForceDomain
        • Network.Wai.Middleware.ForceSSL
        • Network.Wai.Middleware.Gzip
        • Network.Wai.Middleware.HttpAuth
        • Network.Wai.Middleware.Jsonp
        • Network.Wai.Middleware.Local
        • Network.Wai.Middleware.MethodOverride
        • Network.Wai.Middleware.MethodOverridePost
        • Network.Wai.Middleware.RequestLogger
          • Network.Wai.Middleware.RequestLogger.JSON
        • Network.Wai.Middleware.Rewrite
        • Network.Wai.Middleware.Routed
        • Network.Wai.Middleware.StreamFile
        • Network.Wai.Middleware.StripHeaders
        • Network.Wai.Middleware.Vhost
      • Network.Wai.Parse
      • Network.Wai.Request
      • Network.Wai.Test
      • Network.Wai.UrlMap

wai-extra

The goal here is to provide common features without many dependencies.

Changes

3.0.19.1

  • All loggers follow the autoFlush setting #604

3.0.19

  • Add a new function basicAuth’, which passes request to the CheckCreds argument.

3.0.18

  • ForceSSL: preserve port number when redirecting to https. #582

3.0.17

  • Gzip pre compressed #580

3.0.16.1

  • Fix the way the header length is checked (for limiting the max header length)

3.0.16.0

  • Add a new function “parseRequestBodyEx” that allows various size limits to be set.

3.0.15.3

  • Allow wai-logger 2.3

3.0.15.2

  • Doc improvements

3.0.15.1

  • don’t use deprecated CRT functions on Windows #544

3.0.15

  • add requestSizeCheck #525

3.0.14.3

  • Add missing requestHeaderReferer and requestHeaderUserAgent fields to CGI yesod#1186

3.0.14.2

  • Case insensitive multipart request header lookup #518

3.0.14.1

  • Doc update for logStdout and logStdoutDev #515

3.0.14

  • Middleware to force domain names. #506 #507

3.0.13.1

  • Support wai 3.2

3.0.13

  • Autoflush handle #466

3.0.12

  • Add Network.Wai.Header.contentLength to read the Content-Length header of a response
  • The gzip middleware no longer zips responses smaller than 860 bytes

3.0.11

  • Add constructor for more detailed custom output formats for RequestLogger
  • Add JSON output formatter for RequestLogger

3.0.10

  • Adding Request Body to RequestLogger #401

3.0.9

  • Network.Wai.Middleware.Routed module added

3.0.7

  • Add appearsSecure: check if a request appears to be using SSL even in the presence of reverse proxies #362
  • Add ForceSSL middleware #363
  • Add Approot middleware

3.0.6.1

  • Test code: only include a Cookie header if there are cookies. Without this patch, yesod-test cookie handling is broken.

3.0.6

  • Add Cookie Handling to Network.Wai.Test #356

3.0.5

  • add functions to extract authentication data from Authorization header [#352](add functions to extract authentication data from Authorization header #352)

3.0.4.6

  • Access log sequence not valid #336

3.0.4.5

  • Allow fast-logger 2.3

3.0.4.3

Test suite warning cleanup

3.0.4.2

Allow blaze-builder 0.4

3.0.4.1

Fix compilation failure on Windows #321

3.0.4

Add the StreamFile middleware.

3.0.3

Add the AddHeaders middleware.