forked from erikd/http-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
http-proxy.cabal
168 lines (150 loc) · 6.09 KB
/
http-proxy.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: http-proxy
version: 0.1.1.0
license: BSD3
license-file: LICENSE
author: Michael Snoyman, Erik de Castro Lopo
maintainer: [email protected]
homepage: https://github.com/erikd/http-proxy
bug-reports: https://github.com/erikd/http-proxy/issues
category: Web
build-type: Simple
cabal-version: >= 1.10
stability: Experimental
extra-source-files: ChangeLog.md Readme.md
synopsis: A library for writing HTTP and HTTPS proxies
description:
http-proxy is a library for writing HTTP and HTTPS proxies.
.
Use of the Conduit library provides file streaming via the proxy in both
directions. Memory usage of the proxy scales linearly with the number of
simultaneous connections and is independent of the size of the files being
uploaded or downloaded.
.
The Settings data type provided by the library allows the caller to supply
a functions for exception reporting and request re-writing. Eventually, this
capability will be expanded to allow optional logging, disk caching etc.
source-repository head
type: git
location: https://github.com/erikd/http-proxy.git
library
default-language: Haskell2010
ghc-options: -Wall -fwarn-tabs
if os(windows)
cpp-options: -DWINDOWS
exposed-modules: Network.HTTP.Proxy
Network.HTTP.Proxy.Request
build-depends: base >= 4 && < 5
, async == 2.2.*
, blaze-builder == 0.4.*
, bytestring == 0.10.*
, bytestring-lexing == 0.5.*
, case-insensitive == 1.2.*
, conduit == 1.3.*
, conduit-extra == 1.3.*
, http-client == 0.6.*
, http-conduit == 2.3.*
, http-types == 0.12.*
, mtl == 2.2.*
, network == 2.8.*
, resourcet == 1.2.*
, streaming-commons == 0.2.*
, tls == 1.4.*
, text == 1.2.*
, transformers == 0.5.*
, wai == 3.2.*
, wai-conduit == 3.0.*
, warp == 3.2.*
, warp-tls == 3.2.*
test-suite test
type: exitcode-stdio-1.0
ghc-options: -Wall -fwarn-tabs -threaded -rtsopts "-with-rtsopts=-H1m -K1m"
if os(windows)
cpp-options: -DWINDOWS
default-language: Haskell2010
hs-source-dirs: test
main-is: test.hs
other-modules: Test.Gen
, Test.Request
, Test.ServerDef
, Test.TestServer
, Test.Util
, Test.Wai
build-depends: base
, async
, blaze-builder
, bytestring
, bytestring-lexing
, case-insensitive
, conduit
, connection >= 0.2
, conduit-extra
, http-client
, http-conduit
, http-proxy
, http-types
, hspec >= 2.1
, network
, QuickCheck >= 2.7
, random >= 1.1
, resourcet
, text
, vault
, wai
, wai-conduit
, warp
, warp-tls
test-suite test-io
type: exitcode-stdio-1.0
ghc-options: -Wall -fwarn-tabs -threaded -rtsopts "-with-rtsopts=-H1m -K1m"
if os(windows)
cpp-options: -DWINDOWS
default-language: Haskell2010
hs-source-dirs: test
main-is: test-io.hs
other-modules: Test.Gen
, Test.Request
, Test.ServerDef
, Test.TestServer
, Test.Util
, Test.Wai
build-depends: base
, async
, blaze-builder
, bytestring
, bytestring-lexing
, case-insensitive
, conduit
, connection >= 0.2
, conduit-extra
, http-client
, http-conduit
, http-proxy
, http-types
, hspec >= 2.1
, network
, QuickCheck >= 2.7
, random >= 1.1
, resourcet
, text
, vault
, wai
, wai-conduit
, warp
, warp-tls
executable simple-proxy
default-language: Haskell2010
ghc-options: -Wall -fwarn-tabs -threaded -rtsopts "-with-rtsopts=-H1m -K1m"
hs-source-dirs: example
main-is: simple-proxy.hs
build-depends: base
, http-proxy
executable request-rewrite-proxy
default-language: Haskell2010
ghc-options: -Wall -fwarn-tabs -threaded -rtsopts "-with-rtsopts=-H1m -K1m"
hs-source-dirs: example
main-is: request-rewrite-proxy.hs
build-depends: base
, bytestring
, http-proxy
, network-uri
, wai