Skip to content

Releases: r-lib/httr2

httr2 0.2.2

25 Sep 19:20
Compare
Choose a tag to compare
  • curl_translate() can now handle curl copied from Chrome developer tools
    (@mgirlich, #161).

  • req_oauth_*() can now refresh OAuth tokens. One, two, or even more times!
    (@jennybc, #166)

  • req_oauth_device() can now work in non-interactive environments,
    as intendend (@flahn, #170)

  • req_oauth_refresh() and oauth_flow_refresh() now use the envvar
    HTTR2_REFRESH_TOKEN, not HTTR_REFRESH_TOKEN (@jennybc, #169).

  • req_proxy() now uses the appropriate authentication option (@jl5000).

  • req_url_query() can now opt out of escaping with I() (@boshek, #152).

  • Can now print responses where content type is the empty string
    (@mgirlich, #163).

httr2 0.2.1

10 May 22:27
Compare
Choose a tag to compare
  • "Wrapping APIs" is now an article, not a vignette.

  • req_template() now appends the path instead of replacing it (@jchrom, #133)

httr2 0.2.0

29 Apr 12:13
Compare
Choose a tag to compare

New features

  • req_body_form(), req_body_multipart(), and req_url_query() now
    support multiple arguments with the same name (#97, #107).

  • req_body_form(), req_body_multipart(), now match the interface of
    req_url_query(), taking name-value pairs in .... Supplying a single
    list() is now deprecated and will be removed in a future version.

  • req_body_json() now overrides the existing JSON body, rather than
    attempting to merge with the previous value (#95, #115).

  • Implement req_proxy() (owenjonesuob, #77).

Minor improvements and bug fixes

  • httr_path class renamed to httr2_path to correctly match package name
    (#99).

  • oauth_flow_device() gains PKCE support (@flahn, #92), and
    the interactive flow is a little more user friendly.

  • req_error() can now correct force successful HTTP statuses to fail (#98).

  • req_headers() will now override Content-Type set by req_body_*() (#116).

  • req_throttle() correctly sets throttle rate (@jchrom, #101).

  • req_url_query() never uses scientific notation for queries (#93).

  • req_perform() now respects httr::with_verbose() (#85).

  • response() now defaults body to raw(0) for consistency with real
    responses (#100).

httr2 0.1.1

28 Sep 17:29
Compare
Choose a tag to compare
  • Fix R CMD check failures on CRAN

  • Added a NEWS.md file to track changes to the package.

httr2 0.1.0

23 Sep 12:25
Compare
Choose a tag to compare

Initial release