lhc icon indicating copy to clipboard operation
lhc copied to clipboard

🚀 Advanced HTTP Client for Ruby. Fueled with interceptors.

Results 8 lhc issues
Sort by recently updated
recently updated
newest added

The ruby maintainers started to recommend not using `OpenStruct` https://docs.ruby-lang.org/en/3.0.0/OpenStruct.html#class-OpenStruct-label-Caveats Also the related rule was added to `rubocop`: https://docs.rubocop.org/rubocop/cops_style.html#styleopenstructuse ATM, it's disabled: https://github.com/local-ch/lhc/pull/205/files#diff-4f894049af3375c2bd4e608f546f8d4a0eed95464efcdea850993200db9fef5cR274 It might make sense to think about...

As we usually configure lhs providers to have throttling it might make sense to rename the throttling interceptors provider option to `bucket`.

``` c.endpoint(:slack, 'https://slack.com', auth: { bearer: '123' }) ```

https://github.com/local-ch/lhc-core-interceptors/blob/master/lib/lhc-core-interceptors/caching.rb#L19 Moved from https://github.com/local-ch/lhc-core-interceptors/issues/28 Reported by @ryabrody

``` endpoint ':datastore/v2/feedbacks/:id', cache: true, cache_expires_in: 1.day ``` @eduardschaeli wrote: `Why set "cache: true" when setting a cache expiration kinda implies that you're using a cache? Couldn't you get rid...

Moved from https://github.com/local-ch/lhc-core-interceptors/issues/7

@scan LHC: `response.data` throws an error when trying to use it with an empty array response: ``` NoMethodError: undefined method `keys' for []:Array from /home/tom/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/lhc-3.8.1/lib/lhc/response/data.rb:30:in `set_dynamic_accessor_methods' ```

googles ReCaptcha site verify is not capable to understand a body send with `LHC.post(url, body: {}.to_json)`