{"id":37024281,"url":"https://github.com/timabilov/irequest","last_synced_at":"2026-01-14T02:56:04.516Z","repository":{"id":57723630,"uuid":"81376585","full_name":"timabilov/irequest","owner":"timabilov","description":"Thin and painless HTTP Java Client/Request library partially inspired from other languages","archived":false,"fork":false,"pushed_at":"2018-11-03T23:54:26.000Z","size":84,"stargazers_count":4,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-03T04:46:27.694Z","etag":null,"topics":["api","async","chain","file-upload","fluent","http-client","java","json","json-request","lightweight","painless","request"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timabilov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-08T21:14:41.000Z","updated_at":"2023-07-21T13:50:53.000Z","dependencies_parsed_at":"2022-09-26T21:50:31.384Z","dependency_job_id":null,"html_url":"https://github.com/timabilov/irequest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/timabilov/irequest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timabilov%2Firequest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timabilov%2Firequest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timabilov%2Firequest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timabilov%2Firequest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timabilov","download_url":"https://codeload.github.com/timabilov/irequest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timabilov%2Firequest/sbom","scorecard":{"id":885522,"data":{"date":"2025-08-11","repo":{"name":"github.com/timabilov/irequest","commit":"4389f2ed64771208c47e7972652aa919adf85797"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":-1,"reason":"no dependencies found","details":null,"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":0,"reason":"no effort to earn an OpenSSF best practices badge detected","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":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"Vulnerabilities","score":0,"reason":"51 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg","Warn: Project is vulnerable to: GHSA-288c-cq4h-88gq","Warn: Project is vulnerable to: GHSA-4gq5-ch57-c2mg","Warn: Project is vulnerable to: GHSA-4w82-r329-3q67","Warn: Project is vulnerable to: GHSA-57j2-w4cx-62h2","Warn: Project is vulnerable to: GHSA-5949-rw7g-wx7w","Warn: Project is vulnerable to: GHSA-5r5r-6hpj-8gg9","Warn: Project is vulnerable to: GHSA-5ww9-j83m-q7qx","Warn: Project is vulnerable to: GHSA-645p-88qh-w398","Warn: Project is vulnerable to: GHSA-6fpp-rgj9-8rwc","Warn: Project is vulnerable to: GHSA-6wqp-v4v6-c87c","Warn: Project is vulnerable to: GHSA-85cw-hj65-qqv9","Warn: Project is vulnerable to: GHSA-89qr-369f-5m5x","Warn: Project is vulnerable to: GHSA-8c4j-34r4-xr8g","Warn: Project is vulnerable to: GHSA-8w26-6f25-cm9x","Warn: Project is vulnerable to: GHSA-9gph-22xh-8x98","Warn: Project is vulnerable to: GHSA-9m6f-7xcq-8vf8","Warn: Project is vulnerable to: GHSA-9mxf-g3x6-wv74","Warn: Project is vulnerable to: GHSA-c8hm-7hpq-7jhg","Warn: Project is vulnerable to: GHSA-cf6r-3wgc-h863","Warn: Project is vulnerable to: GHSA-cjjf-94ff-43w7","Warn: Project is vulnerable to: GHSA-cmfg-87vq-g5g4","Warn: Project is vulnerable to: GHSA-cvm9-fjm9-3572","Warn: Project is vulnerable to: GHSA-f3j5-rmmp-3fc5","Warn: Project is vulnerable to: GHSA-f9hv-mg5h-xcw9","Warn: Project is vulnerable to: GHSA-f9xh-2qgp-cq57","Warn: Project is vulnerable to: GHSA-fmmc-742q-jg75","Warn: Project is vulnerable to: GHSA-fqwf-pjwf-7vqv","Warn: Project is vulnerable to: GHSA-gjmw-vf9h-g25v","Warn: Project is vulnerable to: GHSA-gwp4-hfv6-p7hw","Warn: Project is vulnerable to: GHSA-gww7-p5w4-wrfv","Warn: Project is vulnerable to: GHSA-h3cw-g4mq-c5x2","Warn: Project is vulnerable to: GHSA-h822-r4r5-v8jg","Warn: Project is vulnerable to: GHSA-jjjh-jjxp-wpff","Warn: Project is vulnerable to: GHSA-m6x4-97wx-4q27","Warn: Project is vulnerable to: GHSA-mph4-vhrx-mv67","Warn: Project is vulnerable to: GHSA-mx7p-6679-8g3q","Warn: Project is vulnerable to: GHSA-mx9v-gmh4-mgqw","Warn: Project is vulnerable to: GHSA-p43x-xfjf-5jhr","Warn: Project is vulnerable to: GHSA-q93h-jc49-78gg","Warn: Project is vulnerable to: GHSA-qjw2-hr98-qgfh","Warn: Project is vulnerable to: GHSA-qr7j-h6gg-jmgc","Warn: Project is vulnerable to: GHSA-r3gr-cxrf-hg25","Warn: Project is vulnerable to: GHSA-r695-7vr9-jgc2","Warn: Project is vulnerable to: GHSA-rgv9-q543-rqg4","Warn: Project is vulnerable to: GHSA-rpr3-cw39-3pxh","Warn: Project is vulnerable to: GHSA-v585-23hc-c647","Warn: Project is vulnerable to: GHSA-vfqx-33qm-g869","Warn: Project is vulnerable to: GHSA-wh8g-3j2c-rqj5","Warn: Project is vulnerable to: GHSA-x2w5-5m2g-7h5m"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T09:53:00.314Z","repository_id":57723630,"created_at":"2025-08-24T09:53:00.314Z","updated_at":"2025-08-24T09:53:00.314Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["api","async","chain","file-upload","fluent","http-client","java","json","json-request","lightweight","painless","request"],"created_at":"2026-01-14T02:56:03.760Z","updated_at":"2026-01-14T02:56:04.498Z","avatar_url":"https://github.com/timabilov.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iRequest\nThinnest HTTP Client ***based on HttpURLConnection*** provides you - wraps all functionality in soft manner with fluent-like interface.\n\nThis client abstracts you from all boilerplate and extra dependency(JSON, XML etc.) that you write within native API as hard as possible.    \n\n \n ```xml\n \u003cdependency\u003e\n     \u003cgroupId\u003ecom.github.timabilov\u003c/groupId\u003e\n     \u003cartifactId\u003eirequest\u003c/artifactId\u003e\n     \u003cversion\u003e1.0.3\u003c/version\u003e\n \u003c/dependency\u003e\n ```   \n\n\n**DO NOT** supports get requests with body  because of specification and etc.\n\nhttp://stackoverflow.com/questions/18664413/can-i-do-an-http-get-and-include-a-body-using-httpurlconnection\n\n\n\n\n\n\n                    \n\nStream response to anywhere directly or store after\n\n```java\n\nRequest.get(\"http://httpbin.org/ip\")\n        .proxy(\"27.48.5.68\", 8080)\n        .pipe(System.out);\n        \nRequest.get(\"https://www.google.az/favicon.ico?key=initial\")\n        .arg(\"key2\", \"additional\") // url args\n        .snapshot() // prints request before send\n        .pipe(\"favicon.ico\");\n\nRequest.get(\"https://www.google.az/\")\n        .header(\"User-Agent\", \"iRequest Agent\") // it's default user-agent\n        .snapshot() // prints request before send\n        .send() // Response object\n        .printHeaders()\n        .store(\"google.html\");\n```\n\nUse `fetch()` to get result immediately. Also may use ` fetchJson()` instead. \n\n```java\nJsonNode json  = Request.get(\"http://httpbin.org/basic-auth/username/password123\")\n        .basicAuth(\"username\", \"password123\")\n        .timeout(10) //read and connect timeout\n        .fetchJson(); // result as json node\n\nRequest.json(\"http://httpbin.org:80/put\", Method.PUT)\n        .param(\"key\", \"value\")\n        .pipe(\"put.json\");\n```\n\nHandle fired requests asynchronously(not at I/O level) : \n\n```java\nRequest.get(\"http://httpbin.org/hidden-basic-auth/user/passwd\")\n        .async(new ResponseHandler() {\n\n            public void success(Response r) {\n                System.out.println(\"Async fetch!\");\n                System.out.println(r.getBody());\n            }\n\n            public void error(BrokenRequestException failedRequest) {\n      \n                try {\n                    failedRequest.repair()\n                            .header(\"ThisHeaderChangesEverything\", \"Really\")\n                            .basicAuth(\"user\", \"passwd\")\n                            .pipe(\"repaired.json\");\n\n                } catch (Exception e){\n                    e.printStackTrace();\n                    System.out.println(\"Damn!\");\n                }\n            }\n        });\n```\n      \n\n`jsonify()` will adapt your form request with params to json request  \n \n```java\n String result = Request.post(\"http://www.posttestserver.com/post.php\")\n             .param(\"name\", \"John\")\n             .jsonify() // { \"name\": \"John\" }\n             .fetch()\n```\n\nPost request built with both form and query params:\n \n``` java\n    \nRequest.post(\"http://www.posttestserver.com/post.php\")\n        .header(\"Header\", \"Header-Value\")\n        .param(\"formParam\", \"formValue\")\n        .arg(\"urlParam\", \"UrlValue\")\n        .snapshot() // prints raw request\n        .pipe(\"post.txt\");\n```\n\nYou can convert post request with converted params from plain form to multipart and json respectively   \n\n```java\nresult = Request.post(\"http://www.posttestserver.com/post.php\")\n        //.proxy(\"112.214.73.253\", 80)\n        .param(\"phone\", \"+994XXYYYYYYY\")\n        .param(\"id\", \"123456\")\n        .param(\"file\", new File(\"C:/Finish.log\")) // Upload file. Implicitly casts to multipart(!).\n        .jsonify() // force convert to json request(not multipart anymore) with file translation encoded\n        // BASE64 body { ... \"file\":{\"name\": \"Finish.log\", \"body\": \"RmluaXNoIA0K\"}}\n        .snapshot()\n        .fetch();\n```\n\nProxy can be set locally or globally.\n\n```java\nString result = Request.post(\"http://www.posttestserver.com/post.php\")\n        .proxy(\"27.48.5.68\", 8080, true) // you can set one-time like this - and also do like down below\n        .saveProxy()  // save this request proxy settings globally until overwritten\n        .param(\"name\", \"John\")\n        .jsonify() // previous params also converted to json\n        .param(\"jsonKey\", MapUtils.mapOf(\"nestedKey\", \"nestedValue\"))\n        .fetch();\n\n\nRequest.get(\"httpbin.org/ip\")\n        .pipe(System.out); // Prints last saved proxy\n\n\nRequest.forgetProxy(); //reset global proxy\n\nRequest.get(\"httpbin.org/ip\")\n        .pipe(System.out); // Prints our origin.\n```\n\nFail silently with bad http codes. No http related exception will be thrown. Instead error body will be considered with response : \n\n```java\nRequest.get(\"http://httpbin.org/status/fake\") // return 500\n        .suppressFail()\n        .timeout(10)\n        .pipe(\"failed.html\");\n```\n            \nBy default handles gzipped and deflated content. You can set your decode provider `withReader(YourInputStream.class)` which used only if none of the available are fit.\n\n```java\nRequest.get(\"http://httpbin.org/gzip\")    \n        .pipe(\"gzipped.json\");\n```\n\nLog you responses, store somewhere and etc.\n\n```java\nRequest.get(\"http://httpbin.org/response-headers\")\n        .arg(\"arg\", \"argValue\")\n        .send()\n        .dump(\"log.txt\", true) // appends log/dump response metadata\n        .store(\"response.json\")\n        .printHeaders();\n```\n\nSet body directly. Not allowed with get requests.\n\n```java\nresult = Request.post(\"http://httpbin.org:80/post\")\n        .cookie(\"name\", \"3\")\n        .body(\"Native content\") \n        .cookie(\"lang\", \"en\")\n        .snapshot()\n        .fetch();\n```\n\nBy default cookies are validated. You can disable this `Request.skipCookieValidation(true)`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimabilov%2Firequest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimabilov%2Firequest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimabilov%2Firequest/lists"}