Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve streaming interface to provide response info #1439

Merged
merged 5 commits into from
Aug 8, 2022

Conversation

iMacTia
Copy link
Member

@iMacTia iMacTia commented Aug 8, 2022

Description

  • Add bake-test-external and test faraday-net_http as part of the CI
  • Introduce the new streaming API with stream_response helper

Fixes #1426

Todos

List any remaining work that needs to be done, i.e:

  • Tests
  • Documentation

Additional Notes

  • As part of this PR, we're now running faraday-net_http tests as part of CI thanks to bake-test-external 馃檶
  • However, it seems like bake-test-external is incompatible with Ruby 2.6, so we only run them for Ruby 2.7+
  • Rubocop-packaging is currently incompatible with the latest Rubocop release. The fix is on the main branch already, but they haven't released a new version yet, so I've temporarily updated the Gemfile to point to that
  • truffleruby-head and ruby-head are back in the CI matrix, but they've been marked as experimental

@iMacTia iMacTia self-assigned this Aug 8, 2022
@iMacTia iMacTia force-pushed the mg/response-streaming-interface branch 2 times, most recently from 8b67414 to b306082 Compare August 8, 2022 08:27
@iMacTia iMacTia force-pushed the mg/response-streaming-interface branch from b306082 to f3290e2 Compare August 8, 2022 08:53
@iMacTia iMacTia mentioned this pull request Aug 8, 2022
2 tasks
* Backwards-compatible
* Allow adapters to provide response info to on_call block
* Provide `stream_response` helper method
* Make `truffleruby-head` experimental
* Add `ruby-head` as experimental
@iMacTia iMacTia force-pushed the mg/response-streaming-interface branch from fd622e8 to e1604b0 Compare August 8, 2022 09:10
@iMacTia iMacTia marked this pull request as ready for review August 8, 2022 10:03
Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @iMacTia!

The TODOs are good, they work as a sign-post.

@iMacTia
Copy link
Member Author

iMacTia commented Aug 8, 2022

I'd forget about documentation all the time without it 馃槀

@iMacTia iMacTia merged commit 1a5b794 into main Aug 8, 2022
iMacTia added a commit that referenced this pull request Aug 8, 2022
* Backwards-compatible
* Allow adapters to provide response info to on_call block
* Provide `stream_response` helper method
@iMacTia iMacTia deleted the mg/response-streaming-interface branch August 8, 2022 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

on_data callback should be passed in the response's status code
2 participants