{"id":36677170,"url":"https://github.com/barbosaigor/rq","last_synced_at":"2026-01-12T10:51:44.725Z","repository":{"id":57532751,"uuid":"279332326","full_name":"barbosaigor/rq","owner":"barbosaigor","description":"RQ is a lightweight REST (over HTTP/HTTPS) request library.","archived":false,"fork":false,"pushed_at":"2020-08-05T14:18:04.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-07-27T21:56:56.580Z","etag":null,"topics":["fast","http","https","lightweight","request","rest","restful","simple"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/barbosaigor/rq","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barbosaigor.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":"2020-07-13T14:53:34.000Z","updated_at":"2023-07-27T21:56:56.581Z","dependencies_parsed_at":"2022-09-26T18:41:08.544Z","dependency_job_id":null,"html_url":"https://github.com/barbosaigor/rq","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"purl":"pkg:github/barbosaigor/rq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barbosaigor%2Frq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barbosaigor%2Frq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barbosaigor%2Frq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barbosaigor%2Frq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barbosaigor","download_url":"https://codeload.github.com/barbosaigor/rq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barbosaigor%2Frq/sbom","scorecard":{"id":225698,"data":{"date":"2025-08-11","repo":{"name":"github.com/barbosaigor/rq","commit":"071eaa1265c22621b89362b8aec3c197149390c0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/13 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":"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":"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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE: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":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":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"}}]},"last_synced_at":"2025-08-17T03:46:01.028Z","repository_id":57532751,"created_at":"2025-08-17T03:46:01.028Z","updated_at":"2025-08-17T03:46:01.028Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:40:25.642Z","status":"ssl_error","status_checked_at":"2026-01-12T10:39:27.820Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["fast","http","https","lightweight","request","rest","restful","simple"],"created_at":"2026-01-12T10:51:44.638Z","updated_at":"2026-01-12T10:51:44.698Z","avatar_url":"https://github.com/barbosaigor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RQ\n\nPackage RQ is a lightweight REST (over HTTP/HTTPS) request library. \nThe main goal of this library is to offer simplicity and ease of use.\n\n## Install\n```bash\ngo get github.com/barbosaigor/rq\n```\n\n## Usage\ne.g fetch products using Get method  \n```golang\nvar products Products\nrq.Endpoint(\"my-api.com/products\").Get().ToJSON(\u0026products)\n```  \ne.g create product using the Post method  \n```golang\nproduct := Product{...}\nrq.Endpoint(\"my-api.com/product\").JSON(product).Post()\n```  \n\nRQ has an interesting error handling if an operation within the pipeline fails,\nthen all subsequent operations will silently forward the error, and no operations are done.\nFor error handling, you can use _Err_ which stores the last error entry inside the pipeline.\n```golang\nif rq.Endpoint(\"my-api.com/products\").Get().Err != nil {\n    ...\n}\n```  \n\n## Documentation\nFor more details, you can read the complete documentation on [pkg.go.dev](https://pkg.go.dev/github.com/barbosaigor/rq).  \nYou can configure your requests with these methods  \n**Endpoint** defines the request endpoint (if the endpoint hasn't the protocol prefix such as http:// or https://, RQ will attach an http://)  \n```golang\nfunc (rq *RQ) Endpoint(endpoint string) *RQ\n```  \n**JSON** sets the JSON to send within the request  \n```golang\nfunc (rq *RQ) JSON(data interface{}) *RQ\n```  \n**Text** sets the text to send within the request  \n```golang\nfunc (rq *RQ) Text(data string) *RQ\n```  \n**Cookies** sets Cookies for the request  \n```golang\nfunc (rq *RQ) Cookies(cookies []*http.Cookie) *RQ\n```  \n**Cookie** sets a cookie for the request  \n```golang\nfunc (rq *RQ) Cookie(cookie *http.Cookie) *RQ\n```  \n**SetHeader** sets fields for HTTP header  \n```golang\nfunc (rq *RQ) SetHeader(name, value string) *RQ\n```  \n\nAfter that, you can make a request using REST verbs on these methods **Post**, **Get**, **Put**, **Delete**, **Head**, and **Patch**  \n```golang\nfunc (rq *RQ) Post() *RQ  \n```\n```golang\nfunc (rq *RQ) Get() *RQ  \n```\n```golang\nfunc (rq *RQ) Put() *RQ  \n```\n```golang\nfunc (rq *RQ) Delete() *RQ  \n```\n```golang\nfunc (rq *RQ) Head() *RQ  \n```\n```golang\nfunc (rq *RQ) Patch() *RQ  \n```  \n\nAfter the request is done you can get the response  \n**ToJSON** unmarshal the response body to JSON  \n```golang\nfunc (rq *RQ) ToJSON(data interface{}) *RQ\n```  \n**ToString** convert the response body to string  \n```golang\nfunc (rq *RQ) ToString(str *string) *RQ\n```  \n**StatusCode** returns the status code response  \n```golang\nfunc (rq *RQ) StatusCode() int\n```  \n**ResponseBody** returns the response body as []byte  \n```golang\nfunc (rq *RQ) ResponseBody() []byte\n```  \n**Response** returns the net/http Response  \n```golang\nfunc (rq *RQ) Response() *http.Response\n```  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarbosaigor%2Frq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarbosaigor%2Frq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarbosaigor%2Frq/lists"}