http
http copied to clipboard
HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts
Example request: ```ruby url = 'https://m.huffingtonpost.es/entry/el-supremo-anula-la-sentencia-contra-otegi-y-los-demas-acusados-en-el-caso-bateragune_es_5f24056ac5b6a34284b99a0a?25f' HTTP.use(:auto_inflate) .follow .headers('Accept-Encoding' => 'gzip') .get(url) ``` immediately raises: ``` Traceback (most recent call last): ... 7: from vendor/bundle/ruby/2.6.0/gems/http-4.4.1/lib/http/chainable.rb:20:in `get' 6: from vendor/bundle/ruby/2.6.0/gems/http-4.4.1/lib/http/client.rb:34:in `request'...
jar = HTTP::CookieJar.new jar.load(filename) or jar = HTTP::CookiJare.new(store: :mozilla, filename: 'cookies.sqlite') I want to use another http client to start a session , (cuprite), and then when I am authenticated...
Ruby 3 support `Ractor` to archive concurrency, `Ractor` can not access instance variables of classes/modules. When I want to use `Ractor` with `http`, I found `http` is using access instance...
I'd like to propose adding pattern matching to some of the core classes of `http`, primarily `deconstruct_keys`, to allow for matching against things like Responses and Requests. Consider: ```ruby response...
CI on `master` is presently broken, with SSL-related tests failing with the following error: https://travis-ci.org/github/httprb/http/jobs/744656845 ``` # ```
Hello, In Ubuntu, we are in the process of moving to ruby2.5 by default, with openssl 1.1. http appears to fail all the ssl based tests, similar to this: ```...
Hi, I'm currently migrating a project to rails, however, I can't seem to figure out how to fetch a specific byte range from a big file. Let's say I have...
I've been searching for a HTTP library that allows me to control the name used for SNI. The use case is I'm connecting to individual nodes in a cluster to...
This library is generating a segfault for me when I do this - `HTTP.get(s3_object_public_url).body.to_s` This is on our Heroku workers, they keep crashing with Segfault. Please see details below. Its...
I tried doing something like this to use the cookies from a previous response in a subsequent request: ```ruby response = HTTP.get('http://www.example.com') cookies = response.cookies new_response = HTTP.get('http://www.example.com').cookies(cookies) ``` However,...