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

Results 10 async-http-faraday issues
Sort by recently updated
recently updated
newest added

I've been trying to use async-http-faraday and I'm struggling to get it to work, even with the simplest request I can think of: a GET request to example.com. I made...

When a faraday client is cached in a global or module/class-level singleton variable such that the same client instance may be used across multiple threads, then a concurrent request between...

This PR wraps the `'can get remote resource'` spec in VCR cassette, so that no external dependencies are needed to run the specs. One issue though is that the VCR...

enhancement

To e.g. downstream a file in falcon it would be cool if the adapter would support on_data callbacks. See https://lostisland.github.io/faraday/usage/streaming

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...

Closes #51 This makes the adapter ignore `Content-Length` if given in Faraday's `env.request_headers`, but only if capitalized, since `Async::HTTP` will set `content-length` anyway. I'd like to add tests too, but...

Minimal reproduction (requires a webserver running on localhost:9292): ```ruby require "rubygems" require "bundler/inline" gemfile do source "https://rubygems.org" gem "async-http-faraday", require: false end require "faraday" require "async/http/faraday" Faraday.default_adapter = :async_http conn...

```ruby class Otc def conn @conn ||= Faraday.new(url: 'https://www.htx.com') do |builder| builder.adapter :async_http, timeout: 60 builder.request :json builder.response :json end end def payment_systems_request @payment_systems_request ||= conn.get('/-/x/otc/v1/data/config-list', { type: 'currency,marketQuery,pay,allCountry,coin' }).body...

We're not currently using Async in our project, though we are looking to switch some code that was previously using Faraday with the `:typhoeus` adapter to instead use the `:async_http`...