-
Notifications
You must be signed in to change notification settings - Fork 9
/
wai-middleware-throttle.cabal
75 lines (68 loc) · 2.46 KB
/
wai-middleware-throttle.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: wai-middleware-throttle
version: 0.3.0.1
license: BSD3
license-file: LICENSE
author: Christopher Reichert
maintainer: creichert07@gmail.com
copyright: (c) 2015-2017, Christopher Reichert
category: Web
build-type: Simple
cabal-version: >=1.10
synopsis: WAI Middleware for Request Throttling
description:
WAI Middleware for request rate limiting and throttling.
.
Designed to be configured in the spirit of the NGinx module.
source-repository head
type: git
location: git://github.com/creichert/wai-middleware-throttle.git
library
exposed-modules: Network.Wai.Middleware.Throttle
Network.Wai.Middleware.Throttle.Internal
ghc-options: -Wall -fno-warn-unused-do-bind
default-language: Haskell2010
build-depends: base >= 4.6 && < 5.0
, bytestring
, bytestring-builder
, cache
, clock
, containers
, hashable >= 1.2
, http-types
, mtl
, network >= 2.4.2 && <3.3
, safe-exceptions
, stm
, text
, token-bucket >= 0.1.0.1
, transformers
, wai >= 3.0
default-extensions: CPP
FlexibleContexts
LambdaCase
OverloadedStrings
RecordWildCards
if impl(ghc < 7.8)
build-depends:
blaze-builder < 0.4
test-suite spec
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test/
other-modules: WaiMiddlewareThrottleSpec
ghc-options: -Wall -threaded
default-language: Haskell2010
build-depends: base >= 4.6 && < 5.0
, bytestring
, cache
, clock
, hspec >= 1.3
, http-types
, HUnit
, QuickCheck
, stm
, transformers
, wai
, wai-extra
, wai-middleware-throttle
default-extensions: OverloadedStrings