{"id":46173315,"url":"https://github.com/jayjamesjay/http_req","last_synced_at":"2026-03-02T17:04:14.958Z","repository":{"id":32944236,"uuid":"147076344","full_name":"jayjamesjay/http_req","owner":"jayjamesjay","description":"simple HTTP client with built-in HTTPS support","archived":false,"fork":false,"pushed_at":"2025-11-14T18:29:02.000Z","size":361,"stargazers_count":77,"open_issues_count":4,"forks_count":48,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-14T20:36:45.093Z","etag":null,"topics":["http","http-client","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/jayjamesjay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-09-02T10:43:31.000Z","updated_at":"2025-11-14T18:28:34.000Z","dependencies_parsed_at":"2023-09-25T22:47:55.035Z","dependency_job_id":"d5637e1c-65fd-4420-b8a3-c28121e7fa0d","html_url":"https://github.com/jayjamesjay/http_req","commit_stats":{"total_commits":102,"total_committers":13,"mean_commits":7.846153846153846,"dds":0.5686274509803921,"last_synced_commit":"a4c6b9e06a3c52f3199e38741f65d3905741afac"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/jayjamesjay/http_req","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayjamesjay%2Fhttp_req","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayjamesjay%2Fhttp_req/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayjamesjay%2Fhttp_req/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayjamesjay%2Fhttp_req/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jayjamesjay","download_url":"https://codeload.github.com/jayjamesjay/http_req/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayjamesjay%2Fhttp_req/sbom","scorecard":{"id":509011,"data":{"date":"2025-08-11","repo":{"name":"github.com/jayjamesjay/http_req","commit":"21c674087afdc4abc5c57b31e355607352e3b7c4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 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":"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":"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":"Maintained","score":0,"reason":"1 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":10,"reason":"no dangerous workflow patterns detected","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/rust.yml:1","Info: no jobLevel write permissions found"],"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/jayjamesjay/http_req/rust.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned"],"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T00:02:42.231Z","repository_id":32944236,"created_at":"2025-08-20T00:02:42.232Z","updated_at":"2025-08-20T00:02:42.232Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30011185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T17:00:27.440Z","status":"ssl_error","status_checked_at":"2026-03-02T17:00:03.402Z","response_time":60,"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":["http","http-client","rust"],"created_at":"2026-03-02T17:04:14.274Z","updated_at":"2026-03-02T17:04:14.928Z","avatar_url":"https://github.com/jayjamesjay.png","language":"Rust","readme":"# http_req\n\n[![Rust](https://github.com/jayjamesjay/http_req/actions/workflows/rust.yml/badge.svg)](https://github.com/jayjamesjay/http_req/actions/workflows/rust.yml)\n[![Crates.io](https://img.shields.io/badge/crates.io-v0.14.2-orange.svg?longCache=true)](https://crates.io/crates/http_req)\n[![Docs.rs](https://docs.rs/http_req/badge.svg)](https://docs.rs/http_req/0.14.2/http_req/)\n\nSimple and lightweight HTTP client with built-in HTTPS support.\n\n- HTTP and HTTPS via [rust-native-tls](https://crates.io/crates/native-tls) (or optionally [rustls](https://crates.io/crates/rustls))\n- Small binary size (0.7 MB for a basic GET request in the default configuratio)\n- Minimal number of dependencies\n\n## Requirements\n\nhttp_req by default uses [rust-native-tls](https://crates.io/crates/native-tls),\nwhich relies on TLS framework provided by OS on Windows and macOS, and OpenSSL\non all other platforms. But it also supports [rustls](https://crates.io/crates/rustls).\n\n## All functionalities\n\n- Support for both HTTP and HTTPS protocols via [rust-native-tls](https://crates.io/crates/native-tls) (or optionally [rustls](https://crates.io/crates/rustls))\n- Creating and sending HTTP requests using the `Request` type (with extended capabilities provided via `RequestMessage` and `Stream`)\n- Representing HTTP responses with the `Response` type, allowing easy access to details like the status code and headers\n- Handling redirects using the `RedirectPolicy`\n- Support for Basic and Bearer authentication\n- Processing responses with `Transfer-Encoding: chunked`\n- Managing absolute `Uri`s and partial support for relative `Uri`s\n- Enforcing timeouts on requests\n- Downloading data in a streaming fashion, allowing direct saving to disk (minimizing RAM usage)\n- `Error` handling system allowing for better debugging\n- Utility functions for easily sending common request types: `get`, `head`, `post`\n\n## Usage\n\n### Default configuration\n\nIn order to use `http_req` with default configuration, add the following lines to `Cargo.toml`:\n\n```toml\n[dependencies]\nhttp_req = \"^0.14\"\n```\n\n### Rustls\n\nIn order to use `http_req` with `rustls` in your project, add the following lines to `Cargo.toml`:\n\n```toml\n[dependencies]\nhttp_req = { version=\"^0.14\", default-features = false, features = [\"rust-tls\"] }\n```\n\n### HTTP only\n\nIn order to use `http_req` without any additional features in your project (no HTTPS, no Authentication), add the following lines to `Cargo.toml`:\n\n```toml\n[dependencies]\nhttp_req = { version=\"^0.14\", default-features = false }\n```\n\n## Example\n\nBasic HTTP GET request\n\n```rust\nuse http_req::request;\n\nfn main() {\n    let mut body = Vec::new(); //Container for body of a response.\n    let res = request::get(\"https://doc.rust-lang.org/\", \u0026mut body).unwrap();\n\n    println!(\"Status: {} {}\", res.status_code(), res.reason());\n}\n```\n\nTake a look at [more examples](https://github.com/jayjamesjay/http_req/tree/master/examples)\n\n## License\n\nLicensed under [MIT](https://github.com/jayjamesjay/http_req/blob/master/LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayjamesjay%2Fhttp_req","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayjamesjay%2Fhttp_req","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayjamesjay%2Fhttp_req/lists"}