{"id":13484137,"url":"https://github.com/httprb/http","last_synced_at":"2026-03-17T20:02:54.431Z","repository":{"id":37270768,"uuid":"2524005","full_name":"httprb/http","owner":"httprb","description":"HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts","archived":false,"fork":false,"pushed_at":"2026-03-15T14:37:48.000Z","size":2320,"stargazers_count":3125,"open_issues_count":27,"forks_count":328,"subscribers_count":44,"default_branch":"main","last_synced_at":"2026-03-15T19:56:39.770Z","etag":null,"topics":["client","http","http-client","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/httprb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2011-10-06T04:19:10.000Z","updated_at":"2026-03-15T14:37:51.000Z","dependencies_parsed_at":"2023-01-29T18:16:01.407Z","dependency_job_id":"af88f40e-8672-4afe-8b62-314932f46c56","html_url":"https://github.com/httprb/http","commit_stats":{"total_commits":1185,"total_committers":127,"mean_commits":9.330708661417322,"dds":0.6447257383966245,"last_synced_commit":"1af3c8e2dfb84d73e7febaaffce7bd7f4829cced"},"previous_names":["tarcieri/http","httprb/http.rb","tarcieri/http.rb"],"tags_count":106,"template":false,"template_full_name":null,"purl":"pkg:github/httprb/http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprb%2Fhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprb%2Fhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprb%2Fhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprb%2Fhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/httprb","download_url":"https://codeload.github.com/httprb/http/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprb%2Fhttp/sbom","scorecard":{"id":471283,"data":{"date":"2025-08-11","repo":{"name":"github.com/httprb/http","commit":"7a32573d61477ab45af321f40e05039c6301c2f6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.1,"checks":[{"name":"Code-Review","score":5,"reason":"Found 15/30 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Maintained","score":10,"reason":"9 commit(s) and 10 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/httprb/http/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/httprb/http/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/httprb/http/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/httprb/http/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/httprb/http/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/httprb/http/ci.yml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":2,"reason":"badge detected: InProgress","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T13:56:47.467Z","repository_id":37270768,"created_at":"2025-08-19T13:56:47.467Z","updated_at":"2025-08-19T13:56:47.467Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30630028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","http","http-client","ruby"],"created_at":"2024-07-31T17:01:19.801Z","updated_at":"2026-03-17T20:02:54.392Z","avatar_url":"https://github.com/httprb.png","language":"Ruby","readme":"# ![http.rb](https://raw.github.com/httprb/http.rb/main/logo.png)\n\n[![Gem Version][gem-image]][gem-link]\n[![MIT licensed][license-image]][license-link]\n[![Build Status][build-image]][build-link]\n\n[Documentation]\n\n## About\n\nHTTP (The Gem! a.k.a. http.rb) is an easy-to-use client library for making requests\nfrom Ruby. It uses a simple method chaining system for building requests, similar to\nPython's [Requests].\n\nUnder the hood, http.rb uses the [llhttp] parser, a fast HTTP parsing native extension.\nThis library isn't just yet another wrapper around `Net::HTTP`. It implements the HTTP\nprotocol natively and outsources the parsing to native extensions.\n\n### Why http.rb?\n\n- **Clean API**: http.rb offers an easy-to-use API that should be a\n   breath of fresh air after using something like Net::HTTP.\n\n- **Maturity**: http.rb is one of the most mature Ruby HTTP clients, supporting\n   features like persistent connections and fine-grained timeouts.\n\n- **Performance**: using native parsers and a clean, lightweight implementation,\n   http.rb achieves high performance while implementing HTTP in Ruby instead of C.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n```ruby\ngem \"http\"\n```\n\nAnd then execute:\n```bash\n$ bundle\n```\n\nOr install it yourself as:\n```bash\n$ gem install http\n```\n\nInside of your Ruby program do:\n```ruby\nrequire \"http\"\n```\n\n...to pull it in as a dependency.\n\n\n## Documentation\n\n[Please see the http.rb wiki][documentation]\nfor more detailed documentation and usage notes.\n\nThe following API documentation is also available:\n\n- [YARD API documentation](https://www.rubydoc.info/github/httprb/http)\n- [Chainable module (all chainable methods)](https://www.rubydoc.info/github/httprb/http/HTTP/Chainable)\n\n\n### Basic Usage\n\nHere's some simple examples to get you started:\n\n```ruby\n\u003e\u003e HTTP.get(\"https://github.com\").to_s\n=\u003e \"\\n\\n\\n\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\" class=\\\"\\\"\u003e\\n  \u003chead prefix=\\\"o...\"\n```\n\nThat's all it takes! To obtain an `HTTP::Response` object instead of the response\nbody, all we have to do is omit the `#to_s` on the end:\n\n```ruby\n\u003e\u003e HTTP.get(\"https://github.com\")\n=\u003e #\u003cHTTP::Response/1.1 200 OK {\"Server\"=\u003e\"GitHub.com\", \"Date\"=\u003e\"Tue, 10 May...\u003e\n```\n\nWe can also obtain an `HTTP::Response::Body` object for this response:\n\n```ruby\n\u003e\u003e HTTP.get(\"https://github.com\").body\n=\u003e #\u003cHTTP::Response::Body:3ff756862b48 @streaming=false\u003e\n```\n\nThe response body can be streamed with `HTTP::Response::Body#readpartial`.\nIn practice, you'll want to bind the `HTTP::Response::Body` to a local variable\nand call `#readpartial` on it repeatedly until it returns `nil`:\n\n```ruby\n\u003e\u003e body = HTTP.get(\"https://github.com\").body\n=\u003e #\u003cHTTP::Response::Body:3ff756862b48 @streaming=false\u003e\n\u003e\u003e body.readpartial\n=\u003e \"\\n\\n\\n\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\" class=\\\"\\\"\u003e\\n  \u003chead prefix=\\\"o...\"\n\u003e\u003e body.readpartial\n=\u003e \"\\\" href=\\\"/apple-touch-icon-72x72.png\\\"\u003e\\n    \u003clink rel=\\\"apple-touch-ic...\"\n# ...\n\u003e\u003e body.readpartial\n=\u003e nil\n```\n\n## Supported Ruby Versions\n\nThis library aims to support and is [tested against][build-link]\nthe following Ruby  versions:\n\n- Ruby 3.0\n- Ruby 3.1\n- Ruby 3.2\n- Ruby 3.3\n- Ruby 3.4\n- JRuby 9.4\n\nIf something doesn't work on one of these versions, it's a bug.\n\nThis library may inadvertently work (or seem to work) on other Ruby versions,\nhowever support will only be provided for the versions listed above.\n\nIf you would like this library to support another Ruby version or\nimplementation, you may volunteer to be a maintainer. Being a maintainer\nentails making sure all tests run and pass on that implementation. When\nsomething breaks on your implementation, you will be responsible for providing\npatches in a timely fashion. If critical issues for a particular implementation\nexist at the time of a major release, support for that Ruby version may be\ndropped.\n\n\n## Contributing to http.rb\n\n- Fork http.rb on GitHub\n- Make your changes\n- Ensure all tests pass (`bundle exec rake`)\n- Send a pull request\n- If we like them we'll merge them\n- If we've accepted a patch, feel free to ask for commit access!\n\n\n## Copyright\n\nCopyright © 2011-2022 Tony Arcieri, Alexey V. Zapparov, Erik Michaels-Ober, Zachary Anker.\nSee LICENSE.txt for further details.\n\n\n[//]: # (badges)\n\n[gem-image]: https://img.shields.io/gem/v/http?logo=ruby\n[gem-link]: https://rubygems.org/gems/http\n[license-image]: https://img.shields.io/badge/license-MIT-blue.svg\n[license-link]: https://github.com/httprb/http/blob/main/LICENSE.txt\n[build-image]: https://github.com/httprb/http/workflows/CI/badge.svg\n[build-link]: https://github.com/httprb/http/actions/workflows/ci.yml\n\n[//]: # (links)\n\n[documentation]: https://github.com/httprb/http/wiki\n[requests]: https://docs.python-requests.org/en/latest/\n[llhttp]: https://llhttp.org/\n","funding_links":[],"categories":["Ruby","HTTP Clients and tools","HTTP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttprb%2Fhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttprb%2Fhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttprb%2Fhttp/lists"}