async-http-faraday icon indicating copy to clipboard operation
async-http-faraday copied to clipboard

Faraday's env#stream_reaponse? may be undefined in old Faradays

Open olleolleolle opened this issue 8 months ago • 1 comments

https://lostisland.github.io/faraday/#/adapters/custom/streaming This feature of Faraday was introduced at some point, but this gem does not pin to a any specific Faraday version.

Perhaps this adapter could sniff whether the streaming response methods were available, to avoid failure on old Faradays. Or some other solution. I'll link to someone's experience in a comment. Here: https://github.com/github-changelog-generator/github-changelog-generator/issues/1056#issuecomment-2749934572

olleolleolle avatar Mar 25 '25 04:03 olleolleolle

I'd be fine with feature sniffing.

ioquatix avatar Mar 25 '25 05:03 ioquatix