-
Notifications
You must be signed in to change notification settings - Fork 1
/
http-io-streams.cabal
172 lines (152 loc) · 4.77 KB
/
http-io-streams.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
169
170
171
172
cabal-version: 2.2
name: http-io-streams
version: 0.1.7.0
synopsis: HTTP and WebSocket client based on io-streams
description:
An HTTP client with WebSocket (RFC 6455) support, using the Snap Framework's [io-streams](https://hackage.haskell.org/package/io-streams) library to
handle the streaming IO. The @http-io-streams@ API designed for ease of use when querying web services and dealing with the result as streaming I/O.
.
The main HTTP/1.1 part of the library is exported in a single module "Network.Http.Client"; the WebSocket specific functionality is available from the "Network.Http.Client.WebSocket" module.
.
__NOTE__: This package originally started as a fork of [http-streams](http://hackage.haskell.org/package/http-streams) with a lighter dependency footprint focusing on core HTTP functionality.
license: BSD-3-Clause AND GPL-2.0-or-later
license-files: LICENSE LICENSE.GPLv2
author: Andrew Cowie <[email protected]>,
Herbert Valerio Riedel <[email protected]>
maintainer: https://github.com/haskell-hvr/http-io-streams
copyright: © 2012-2018 Operational Dynamics Consulting, Pty Ltd and Others
category: Web, IO-Streams
bug-reports: https://github.com/haskell-hvr/http-io-streams/issues
extra-source-files:
CHANGELOG.md
tests/example1.txt
tests/example2.txt
tests/example3.txt
tests/example4.txt
tests/example5.txt
tests/hello.html
tests/statler.jpg
tested-with:
GHC == 9.8.1
GHC == 9.6.4
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
GHC == 8.6.5
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
-- GHC == 7.10.3
source-repository head
type: git
location: https://github.com/haskell-hvr/http-io-streams.git
flag brotli
manual: True
default: True
description: Build with support for <http://brotli.org Brotli> (<https://tools.ietf.org/html/rfc7932 RFC7932>) compression algorithm for <https://en.wikipedia.org/wiki/HTTP_compression HTTP compression>.
flag fast-xor
manual: True
default: True
description: Enable use of faster and more efficient @XOR@ routines.
common settings
build-depends:
, base >= 4.5 && < 5
, attoparsec ^>= 0.13.2.2 || ^>= 0.14.4
, base64-bytestring ^>= 1.2.1.0
, blaze-builder ^>= 0.4.1.0
, bytestring >= 0.10.0.0 && < 0.13
, case-insensitive ^>= 1.2.0.11
, containers >= 0.5.0.0 && < 0.8
, directory ^>= 1.2.0.1 || ^>= 1.3.0.0
, HsOpenSSL ^>= 0.11.2
, io-streams ^>= 1.5.0.1
, mtl ^>= 2.2.2 || ^>= 2.3.1
, network ^>= 2.6.0.0 || ^>= 2.7.0.0 || ^>= 2.8.0.0 || ^>= 3.0.0.0 || ^>= 3.1.0.0
, network-uri ^>= 2.6.0.0
, openssl-streams ^>= 1.2.1.3
, text ^>= 1.2.3.0 || ^>= 2.0 || ^>= 2.1
, transformers ^>= 0.3.0.0 || ^>= 0.4.2.0 || ^>= 0.5.2.0 || ^>= 0.6.0.4
default-language: Haskell2010
other-extensions:
BangPatterns
CPP
DeriveDataTypeable
DoAndIfThenElse
MagicHash
NamedFieldPuns
OverloadedStrings
Rank2Types
RecordWildCards
UnboxedTuples
ghc-options:
-Wall
-fno-warn-missing-signatures
-fno-warn-unused-binds
-fno-warn-unused-do-bind
-funbox-strict-fields
library
import: settings
-- xor
if flag(fast-xor)
build-depends: xor ^>= 0.0.1.0
else
hs-source-dirs: xor/lib
other-modules: Data.XOR
-- http-streams
if flag(brotli)
build-depends:
brotli-streams ^>= 0.0.0.0
build-depends:
, binary ^>= 0.7.1 || ^>= 0.8.3
, cryptohash-sha1 ^>= 0.11.100
hs-source-dirs: http-streams/lib
exposed-modules:
Network.Http.Client
Network.Http.Client.WebSocket
other-modules:
Network.Http.Connection
Network.Http.ResponseParser
Network.Http.Utilities
Network.Http.Inconvenience
hs-source-dirs: http-common/lib
other-modules:
Network.Http.Types
Network.Http.RequestBuilder,
Network.Http.Internal
test-suite test
import: settings
type: exitcode-stdio-1.0
hs-source-dirs:
http-common/lib
http-streams/lib
tests
main-is:
check.hs
other-modules:
MockServer
TestSuite
Network.Http.Client
Network.Http.Connection
Network.Http.Inconvenience
Network.Http.Internal
Network.Http.RequestBuilder
Network.Http.ResponseParser
Network.Http.Types
Network.Http.Utilities
build-depends:
-- http-io-streams
, aeson
, attoparsec-aeson
, aeson-pretty
, hspec
, hspec-expectations
, HUnit
, lifted-base
, snap
, snap-core
, snap-server
, system-filepath
, directory
, unordered-containers