Changelog for req-0.4.0
Req 0.4.0
- Added the
Reqmonad andrunReqfunction to run it. This allows to usereqwithout defining new (orphan) instances.
Req 0.3.1
- Added
basicAuthUnsafe.
Req 0.3.0
-
Made URL parsing functions
parseUrlHttpandparseUrlHttpsrecognize port numbers. -
Added
req'function that allows to perform requests via a callback that receives pre-constructed request and manager. -
Removed the
ReturnRequestHTTP response implementation as it was not quite safe and was not going to work with retrying. Usereq'instead for “pure” testing. -
Changed the type of
httpConfigCheckResponse, so the second argument can be any instance ofHttpResponse. -
Added built-in automatic retrying. See
httpConfigRetryPolicyandhttpConfigRetryJudgeinHttpConfig. The default configuration retries 5 times on request timeouts. -
Added the
makeResponseBodyPreviewmethod to theHttpResponsetype class that allows to specify how to build a “preview” of response body for inclusion into exceptions. -
Improved wording in the documentation and
README.md.
Req 0.2.0
-
Added support for multipart form data in form of
ReqBodyMultipartbody option andreqBodyMultiparthelper function. This also required a change in type signature ofgetRequestContentType, which now takesbody, notProxy bodybecause we need to extract boundary frombodyand put it intoContent-Typeheader. This change, however, shouldn't be too dangerous for end-users. -
Added support for OAuth 1.0 authentication via
oAuth1option.
Req 0.1.0
- Initial release.