Changelog
View Source0.100.1
Enhancements
- Added
Plugmodule to encode/decode from/to plug. Added plug to put in a normal Phoenix pipeline to log requests as cURL commands - The library now initializes
%Req.Request{}withReq.new/0.
0.100.0
Breaking Changes
- Switch some flag positions in the generated cURL command (#29)
- From cURL to Req the body gets encoded in the specified encoding and set in the correct Req option (#29, #39)
- User Agent is encoded in the user agent flag (
--user-agent/-A) instead of a generic header (#32) --data/-dflag now get's correctly interpreted as "form-urlencoded" instead of "raw" (#39)- If body is set in
Req, and no encoding is specified the "content-type: text/plain" header is added (#39) - Content-Type is only set, when body is not
nil(#39) - Method is automatically set to
:postwhen some data is specified via--data/-d(#39)
Enhancements
- New
CurlReq.Requestmodule for an internal representation of the HTTP request (#29) - Add new supported flag:
--insecure/-k(#31) - Improved documentation
- Added Livebook and cURL Cheatsheet (#35)
httpscheme is now optional in cURL command (#38)- Added more flags to parser, to avoid errors for common flags (#37)
- Handle header list correctly (#45)
Bugfixes
- Some bugfixes regarding the constructed
Req.Requeststruct when multiple request steps have to be set
0.99.0
- Add new supported flags:
--proxyand--proxy-user(#26) - Add more supported auth steps:
netrcandnetrc_file(#19) - Add option to exclude
reqsteps to run when generating the cURL command - Raise on unrecognized
curlflags (#27)
0.98.6
- Handle
--data-rawand--data-ascii(#16) - Strip
$as necessary
0.98.5
- Multiline Curl commands are now supported
to_curl/2now supports short and long argument flag generationto_curl/2now uses a native curl representation. Can be switched to be exactly like theReq.Requestwith theflavoroptionfrom_curl/1now supports the--compressedflag
0.98.4
- Add CurlReq.Plugin
- Add new supported flags:
--head,--form,--userand--location - Add
CurlReq.from_curl/1 - Improved docs and added typespecs
0.98.3
- Change
ex_docto a dev dependency. - Support iodata in Req.Request.body.
- Handle cookies in both directions (#4)
0.98.2
- Handle multiple -d/--data flags (#3)
0.98.1
- Handle long curl options (eg, --data, --header) (#2)
0.98.0
Initial Release!