Package Info

ghc-wai-request-spec


Declarative request parsing


Development/Libraries/Haskell

WAI Request Spec is a declarative validation layer for HTTP requests. It aims to make error-handling for malformed requests as easy as taking the happy path.

A brief summary of the core features:

  • Can specify headers and query params as input sources

  • Support for parsing ints, floats, text, bytes (with encodings), and bools

  • A parser combinator interface for chaining together request requirements

  • Support for Alternatives

  • Support for optional parameters

  • Convenient and informative default error messages that let service consumers

know what went wrong

It is built on WAI, so it is compatible with several Haskell web frameworks. All you need is the ability to access the Request object, and WAI Request Spec takes care of the rest!.


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/wai-request-spec

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.10.2.4-bp150.2.3 info GA Release 2018-08-01 15
  • AArch64
  • ghc-wai-request-spec
  • ghc-wai-request-spec-devel
0.10.2.4-bp150.2.5 info GA Release 2018-07-31 15
  • ppc64le
  • ghc-wai-request-spec
  • ghc-wai-request-spec-devel
0.10.2.4-bp150.2.6 info GA Release 2018-07-30 15
  • x86-64
  • ghc-wai-request-spec
  • ghc-wai-request-spec-devel