{"id":16573544,"url":"https://github.com/v2e4lisp/req","last_synced_at":"2026-06-10T09:32:15.170Z","repository":{"id":56891844,"uuid":"12976699","full_name":"v2e4lisp/req","owner":"v2e4lisp","description":"simple http client for ruby . a wrapper of net/http ","archived":false,"fork":false,"pushed_at":"2013-10-16T13:12:34.000Z","size":280,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-25T04:06:40.498Z","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/v2e4lisp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-20T15:17:23.000Z","updated_at":"2013-10-16T13:12:34.000Z","dependencies_parsed_at":"2022-08-21T00:20:50.615Z","dependency_job_id":null,"html_url":"https://github.com/v2e4lisp/req","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/v2e4lisp/req","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Freq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Freq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Freq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Freq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v2e4lisp","download_url":"https://codeload.github.com/v2e4lisp/req/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Freq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34146871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-11T21:42:28.411Z","updated_at":"2026-06-10T09:32:15.139Z","avatar_url":"https://github.com/v2e4lisp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Req\nMAKE SIMPLE REQUEST SIMPLE.\n\nA simple http/net wrapper to make http request easy.\n\nInspired by request.js\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'req'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install req\n\n## Usage\n\n\u003e How to fork it?\n\n```ruby\nReq[\"https://api.github.com/repo/v2e4lisp/req/forks\"].auth(\"user\", \"pass\").post\n```\n\n\u003e Send data(get).\n\n```ruby\nReq[url].send(a: 1, b: 2).get\n```\n\n\u003e Post json\n\n```ruby\nReq[url].send(a: 1, b: 2).send(c: 3).type(:json).post\n```\n\n\u003e Post form\n\n```ruby\nReq[url].send(field1: \"username\").send(field2: \"password\").type(:form).post\n```\n\n\u003e Post form with file(multipart form)\n\n```ruby\nReq[url].send(field1: \"username\").send(\"file\", csv_file, \"optional-filename\").post\n```\n\n\u003e some other simple API\n\n* write(string): write to body\n* header(hash) : write to header\n* reset        : reset body and header\n* get(n)       : get with redirection limit default is 4\n* use_ssl(bool): turn on/off ssl. It will be auto turned on when scheme is \"https\"\n* mulit(bool)  : multipart form header. Auto turned on when files detected\n* type()       : specify content-type (:text,:json,:html,:xml,:form)\n\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Req\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2e4lisp%2Freq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv2e4lisp%2Freq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2e4lisp%2Freq/lists"}