servant/servant-client/src/Servant
Andres Loeh bc04d120ec Allow more flexbility in setting the request body.
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.
2017-01-12 14:08:50 +01:00
..
Client/Experimental Move general authentication to Experimental module 2016-03-09 22:30:34 +01:00
Common Allow more flexbility in setting the request body. 2017-01-12 14:08:50 +01:00
Client.hs Allow more flexbility in setting the request body. 2017-01-12 14:08:50 +01:00