forked from haskell/wreq
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwreq.cabal
More file actions
164 lines (152 loc) · 3.68 KB
/
wreq.cabal
File metadata and controls
164 lines (152 loc) · 3.68 KB
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
name: wreq
version: 0.2.0.0
synopsis: An easy-to-use HTTP client library.
description:
.
A web client library that is designed for ease of use.
.
Tutorial: <http://www.serpentine.com/wreq/tutorial.html>
.
Features include:
.
* Simple but powerful `lens`-based API
.
* A solid test suite, and built on reliable libraries like
http-client and lens
.
* Session handling includes connection keep-alive and pooling, and
cookie persistence
.
* Automatic response body decompression
.
* Powerful multipart form and file upload handling
.
* Support for JSON requests and responses, including navigation of
schema-less responses
.
* Basic and OAuth2 bearer authentication
.
* Early TLS support via the tls package
homepage: http://www.serpentine.com/wreq
bug-reports: https://github.com/bos/wreq/issues
license: BSD3
license-file: LICENSE.md
author: Bryan O'Sullivan <bos@serpentine.com>
maintainer: bos@serpentine.com
copyright: 2014 Bryan O'Sullivan
category: Web
build-type: Custom
cabal-version: >=1.10
extra-source-files:
README.md
TODO.md
changelog
examples/*.cabal
examples/*.hs
www/*.css
www/*.md
www/Makefile
-- disable doctests with -f-doctest
flag doctest
default: True
manual: True
-- enable httpbin with -fhttpbin
flag httpbin
default: False
manual: True
library
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
default-language: Haskell98
exposed-modules:
Network.Wreq
Network.Wreq.Lens
Network.Wreq.Session
Network.Wreq.Types
other-modules:
Network.Wreq.Internal
Network.Wreq.Internal.Lens
Network.Wreq.Internal.Link
Network.Wreq.Internal.Types
Network.Wreq.Lens.TH
Network.Wreq.Lens.Machinery
Paths_wreq
build-depends:
aeson >= 0.7.0.3,
attoparsec >= 0.11.1.0,
base >= 4.5 && < 5,
bytestring >= 0.9,
exceptions >= 0.5,
http-client >= 0.3.1.1,
http-client-tls >= 0.2,
http-types >= 0.8,
lens >= 4.1,
mime-types,
template-haskell,
text,
time
-- A convenient server for testing locally, or if httpbin.org is down.
executable httpbin
hs-source-dirs: httpbin
ghc-options: -Wall -fwarn-tabs -threaded
default-language: Haskell98
main-is: HttpBin.hs
other-modules: HttpBin.Server
if !flag(httpbin)
buildable: False
else
build-depends:
aeson >= 0.7,
aeson-pretty >= 0.7.1,
base >= 4.5 && < 5,
base64-bytestring,
bytestring,
case-insensitive,
containers,
snap-core,
snap-server >= 0.9.4.4,
text
test-suite tests
type: exitcode-stdio-1.0
hs-source-dirs: httpbin tests
main-is: Tests.hs
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -threaded
default-language: Haskell98
build-depends:
HUnit,
aeson >= 0.7,
aeson-pretty >= 0.7.1,
base >= 4.5 && < 5,
base64-bytestring,
bytestring,
case-insensitive,
containers,
http-client,
http-types,
lens >= 4.1,
snap-core,
snap-server >= 0.9.4.4,
temporary,
test-framework,
test-framework-hunit,
text,
wreq
test-suite doctest
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: DocTests.hs
ghc-options: -Wall -fwarn-tabs -threaded
default-language: Haskell98
if !flag(doctest)
buildable: False
else
build-depends:
base >= 4.5 && < 5,
directory,
doctest,
filepath
source-repository head
type: git
location: https://github.com/bos/wreq
source-repository head
type: mercurial
location: https://bitbucket.org/bos/wreq