{"id":25430484,"url":"https://github.com/mvalitov/http2client","last_synced_at":"2025-05-14T13:13:19.349Z","repository":{"id":54547012,"uuid":"129712050","full_name":"mvalitov/http2client","owner":"mvalitov","description":"http-2 gem wrapper","archived":false,"fork":false,"pushed_at":"2021-02-11T12:23:10.000Z","size":33,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T03:39:06.430Z","etag":null,"topics":["http2","http2-client","ruby"],"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/mvalitov.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-04-16T08:42:20.000Z","updated_at":"2021-02-11T12:22:01.000Z","dependencies_parsed_at":"2022-08-13T19:20:24.944Z","dependency_job_id":null,"html_url":"https://github.com/mvalitov/http2client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvalitov%2Fhttp2client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvalitov%2Fhttp2client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvalitov%2Fhttp2client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvalitov%2Fhttp2client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvalitov","download_url":"https://codeload.github.com/mvalitov/http2client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149991,"owners_count":22022853,"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":["http2","http2-client","ruby"],"created_at":"2025-02-17T03:39:07.824Z","updated_at":"2025-05-14T13:13:19.249Z","avatar_url":"https://github.com/mvalitov.png","language":"Ruby","readme":"# Http2client\n\nruby [http-2](https://github.com/igrigorik/http-2) gem wrapper\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'http2client', git: 'https://github.com/mvalitov/http2client'\n```\n\nAnd then execute:\n\n    $ bundle\n\n\n## Usage\n\n```ruby\n2.3.1 :002 \u003e Http2client::Request.new(\"https://nghttp2.org/httpbin/headers\", {method: :get}).execute\ninit Request https://nghttp2.org/httpbin/headers, {:method=\u003e:get}\nSending HTTP 2.0 request\n =\u003e {:headers=\u003e{\":status\"=\u003e\"200\", \"date\"=\u003e\"Mon, 16 Apr 2018 08:32:14 GMT\", \"content-type\"=\u003e\"application/json\", \"content-length\"=\u003e\"77\", \"access-control-allow-origin\"=\u003e\"*\", \"access-control-allow-credentials\"=\u003e\"true\", \"x-backend-header-rtt\"=\u003e\"0.003416\", \"strict-transport-security\"=\u003e\"max-age=31536000\", \"server\"=\u003e\"nghttpx\", \"via\"=\u003e\"1.1 nghttpx\", \"x-frame-options\"=\u003e\"SAMEORIGIN\", \"x-xss-protection\"=\u003e\"1; mode=block\", \"x-content-type-options\"=\u003e\"nosniff\"}, :body=\u003e\"{\\n  \\\"headers\\\": {\\n    \\\"Host\\\": \\\"nghttp2.org:443\\\",\\n    \\\"Via\\\": \\\"2 nghttpx\\\"\\n  }\\n}\\n\"}\n\n2.3.1 :002 \u003e Http2client::Request.new(\"https://nghttp2.org/httpbin/headers\", {method: :get, headers: {'custom' =\u003e 'custom value'}}).execute\ninit Request https://nghttp2.org/httpbin/headers, {:method=\u003e:get, :headers=\u003e{\"custom\"=\u003e\"custom value\"}}\nSending HTTP 2.0 request\n =\u003e {:headers=\u003e{\":status\"=\u003e\"200\", \"date\"=\u003e\"Mon, 16 Apr 2018 08:49:43 GMT\", \"content-type\"=\u003e\"application/json\", \"content-length\"=\u003e\"107\", \"access-control-allow-origin\"=\u003e\"*\", \"access-control-allow-credentials\"=\u003e\"true\", \"x-backend-header-rtt\"=\u003e\"0.003247\", \"strict-transport-security\"=\u003e\"max-age=31536000\", \"server\"=\u003e\"nghttpx\", \"via\"=\u003e\"1.1 nghttpx\", \"x-frame-options\"=\u003e\"SAMEORIGIN\", \"x-xss-protection\"=\u003e\"1; mode=block\", \"x-content-type-options\"=\u003e\"nosniff\"}, :body=\u003e\"{\\n  \\\"headers\\\": {\\n    \\\"Custom\\\": \\\"custom value\\\",\\n    \\\"Host\\\": \\\"nghttp2.org:443\\\",\\n    \\\"Via\\\": \\\"2 nghttpx\\\"\\n  }\\n}\\n\"}\n\n2.3.1 :002 \u003e Http2client::Request.new(\"https://nghttp2.org/httpbin/post\", {proxy: \"http://127.0.0.1:8080\", method: :post, body: \"id=1\"}).execute\ninit Request https://nghttp2.org/httpbin/post, {:proxy=\u003e\"http://127.0.0.1:8080\", :method=\u003e:post}\nSending HTTP 2.0 request\n =\u003e {:headers=\u003e{\":status\"=\u003e\"200\", \"date\"=\u003e\"Mon, 16 Apr 2018 08:34:40 GMT\", \"content-type\"=\u003e\"application/json\", \"content-length\"=\u003e\"264\", \"access-control-allow-origin\"=\u003e\"*\", \"access-control-allow-credentials\"=\u003e\"true\", \"x-backend-header-rtt\"=\u003e\"0.004909\", \"strict-transport-security\"=\u003e\"max-age=31536000\", \"server\"=\u003e\"nghttpx\", \"via\"=\u003e\"1.1 nghttpx\", \"x-frame-options\"=\u003e\"SAMEORIGIN\", \"x-xss-protection\"=\u003e\"1; mode=block\", \"x-content-type-options\"=\u003e\"nosniff\"}, :body=\u003e\"{\\n  \\\"args\\\": {},\\n  \\\"data\\\": \\\"\\\",\\n  \\\"files\\\": {},\\n  \\\"form\\\": {},\\n  \\\"headers\\\": {\\n    \\\"Host\\\": \\\"nghttp2.org:443\\\",\\n    \\\"Transfer-Encoding\\\": \\\"chunked\\\",\\n    \\\"Via\\\": \\\"2 nghttpx\\\"\\n  },\\n  \\\"json\\\": null,\\n  \\\"origin\\\": \\\"131.127.48.11\\\",\\n  \\\"url\\\": \\\"https://nghttp2.org:443/httpbin/post\\\"\\n}\\n\"}\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/mvalitov/http2client.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvalitov%2Fhttp2client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvalitov%2Fhttp2client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvalitov%2Fhttp2client/lists"}