Rather than hard-coding the `RequestBodyLBS` constructor and be limited to lazy bytestrings, the new function `setReqBody` just takes any value of type `RequestBody`. The old function `setRQBody` has been renamed to `setReqBodyLBS`. The old name is still available, but deprecated. The change has the advantage the we can define new servant API combinators that use streaming request bodies such as for example constructed by the `streamFile` function in http-client. The behaviour for the existing `ReqBody` API combinator is unaffected by this change.
96 lines
3.0 KiB
Plaintext
96 lines
3.0 KiB
Plaintext
name: servant-client
|
|
version: 0.9.2.0
|
|
synopsis: automatical derivation of querying functions for servant webservices
|
|
description:
|
|
This library lets you derive automatically Haskell functions that
|
|
let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
|
|
.
|
|
See <http://haskell-servant.readthedocs.org/en/stable/tutorial/Client.html the client section of the tutorial>.
|
|
.
|
|
<https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md CHANGELOG>
|
|
license: BSD3
|
|
license-file: LICENSE
|
|
author: Servant Contributors
|
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
|
copyright: 2014-2016 Zalora South East Asia Pte Ltd, Servant Contributors
|
|
category: Web
|
|
build-type: Simple
|
|
cabal-version: >=1.10
|
|
tested-with: GHC >= 7.8
|
|
homepage: http://haskell-servant.readthedocs.org/
|
|
Bug-reports: http://github.com/haskell-servant/servant/issues
|
|
extra-source-files:
|
|
include/*.h
|
|
CHANGELOG.md
|
|
README.md
|
|
source-repository head
|
|
type: git
|
|
location: http://github.com/haskell-servant/servant.git
|
|
|
|
library
|
|
exposed-modules:
|
|
Servant.Client
|
|
Servant.Client.Experimental.Auth
|
|
Servant.Common.BaseUrl
|
|
Servant.Common.BasicAuth
|
|
Servant.Common.Req
|
|
build-depends:
|
|
base >= 4.7 && < 4.10
|
|
, base-compat >= 0.9.1 && < 0.10
|
|
, aeson >= 0.7 && < 1.2
|
|
, attoparsec >= 0.12 && < 0.14
|
|
, base64-bytestring >= 1.0.0.1 && < 1.1
|
|
, bytestring >= 0.10 && < 0.11
|
|
, exceptions >= 0.8 && < 0.9
|
|
, http-api-data >= 0.3 && < 0.4
|
|
, http-client >= 0.4.18.1 && < 0.6
|
|
, http-client-tls >= 0.2.2 && < 0.4
|
|
, http-media >= 0.6.2 && < 0.7
|
|
, http-types >= 0.8.6 && < 0.10
|
|
, network-uri >= 2.6 && < 2.7
|
|
, safe >= 0.3.9 && < 0.4
|
|
, servant == 0.9.*
|
|
, string-conversions >= 0.3 && < 0.5
|
|
, text >= 1.2 && < 1.3
|
|
, transformers >= 0.3 && < 0.6
|
|
, transformers-compat >= 0.4 && < 0.6
|
|
, mtl
|
|
hs-source-dirs: src
|
|
default-language: Haskell2010
|
|
ghc-options: -Wall
|
|
if impl(ghc >= 8.0)
|
|
ghc-options: -Wno-redundant-constraints
|
|
include-dirs: include
|
|
|
|
test-suite spec
|
|
type: exitcode-stdio-1.0
|
|
ghc-options: -Wall
|
|
default-language: Haskell2010
|
|
hs-source-dirs: test
|
|
main-is: Spec.hs
|
|
other-modules:
|
|
Servant.ClientSpec
|
|
, Servant.Common.BaseUrlSpec
|
|
build-depends:
|
|
base == 4.*
|
|
, base-compat
|
|
, transformers
|
|
, transformers-compat
|
|
, aeson
|
|
, bytestring
|
|
, deepseq
|
|
, hspec == 2.*
|
|
, http-api-data
|
|
, http-client
|
|
, http-media
|
|
, http-types
|
|
, HUnit
|
|
, network >= 2.6
|
|
, QuickCheck >= 2.7
|
|
, servant == 0.9.*
|
|
, servant-client
|
|
, servant-server == 0.9.*
|
|
, text
|
|
, wai
|
|
, warp
|