Skip to content

Conversation

@ebababi
Copy link
Contributor

@ebababi ebababi commented Jan 22, 2025

With Faraday v2.5.0, a new streaming API has been introduced which allows adapters to provide response information to the on_call block. Acknowledging that not all adapters will implement this change immediately, the adapter specification skipped the related tests in the initial release of this change. This PR implements the new adapter specification for async-http-faraday, including populating response information during streaming, resolving #48.

This implementation updates env with a response marked unfinished immediately after the request, in the same way the "reference implementation" of the faraday-net_http adapter is doing it. Moreover, the streaming tests have been adapted to the adapter specification tests.

Last, it assumes #47.

Types of Changes

  • Bug fix.
  • Breaking change.

Not sure if this can be considered a bug.

Contribution

@ioquatix ioquatix force-pushed the response-info-in-streaming branch from f872481 to 281fad9 Compare January 23, 2025 22:49
@ioquatix ioquatix merged commit d7ab56a into socketry:main Jan 23, 2025
17 of 20 checks passed
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.

2 participants