{"id":19010315,"url":"https://github.com/railsware/rest-client-adapters","last_synced_at":"2026-04-24T07:30:20.027Z","repository":{"id":56892029,"uuid":"203668240","full_name":"railsware/rest-client-adapters","owner":"railsware","description":"RestClient Adapters","archived":false,"fork":false,"pushed_at":"2019-08-22T08:45:49.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-26T02:20:22.995Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/railsware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-21T21:39:20.000Z","updated_at":"2023-07-25T14:28:27.000Z","dependencies_parsed_at":"2022-08-21T01:20:11.887Z","dependency_job_id":null,"html_url":"https://github.com/railsware/rest-client-adapters","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsware%2Frest-client-adapters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsware%2Frest-client-adapters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsware%2Frest-client-adapters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsware%2Frest-client-adapters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/railsware","download_url":"https://codeload.github.com/railsware/rest-client-adapters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240037781,"owners_count":19738017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-08T19:10:51.340Z","updated_at":"2026-04-24T07:30:19.882Z","avatar_url":"https://github.com/railsware.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RestClient Adapters [![Build Status](https://travis-ci.org/railsware/rest-client-adapters.svg?branch=master)](https://travis-ci.org/railsware/rest-client-adapters)\n\n\nThis gem allows to use different HTTP implementation in RestClient with next adapters:\n\n* `:net_http` - Net::HTTP (default, blocking I/O)\n* `:em_http` - EventMachine::HttpRequest (non-blocking I/0)\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rest-client-adapters'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rest-client-adapters\n\n## Usage\n\n\nYou may specify adapter for each request:\n\n```ruby\nRestClient.get('https://www.google.com')\nRestClient.get('https://www.google.com', adapter: :em_http)\n```\n\nOr you may specify adapter globaly:\n\n```ruby\nRestClient.adapter = :em_http\nRestClient.get('https://www.google.com')\n```\n\n## Notes\n\nWhen EventMachine is already running we assume that you are responsible for Fiber allocation.\nYou can add `Rack::FiberPool` to your application middleware and it automatically provides a Fiber for each incoming HTTP request. It creates pool of Fibers and re-use fiber for each incoming HTTP request. Also you can control the connection pool size.\n\n## Authors\n\n* [Andriy Yanko](http://ayanko.github.io)\n\n## References\n\n* https://github.com/rest-client/rest-client\n* https://github.com/igrigorik/em-http-request\n* https://github.com/alebsack/rack-fiber_pool\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailsware%2Frest-client-adapters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frailsware%2Frest-client-adapters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailsware%2Frest-client-adapters/lists"}