{"id":39029773,"url":"https://github.com/keq-request/keq-headers","last_synced_at":"2026-01-17T17:37:02.617Z","repository":{"id":48835793,"uuid":"361648823","full_name":"keq-request/keq-headers","owner":"keq-request","description":"Set/Append headers to request","archived":false,"fork":false,"pushed_at":"2024-10-15T16:18:07.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T13:58:53.412Z","etag":null,"topics":["client","header","headers","http","keq","middleware"],"latest_commit_sha":null,"homepage":"https://keq-request.github.io/guide/libraries/keq-headers","language":"TypeScript","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/keq-request.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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},"funding":{"github":null,"patreon":"val_istar_guo","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-04-26T06:57:43.000Z","updated_at":"2024-10-15T16:18:11.000Z","dependencies_parsed_at":"2024-05-09T07:24:02.858Z","dependency_job_id":"69030d7f-a8ba-496f-9d2f-1408d2489540","html_url":"https://github.com/keq-request/keq-headers","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/keq-request/keq-headers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keq-request%2Fkeq-headers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keq-request%2Fkeq-headers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keq-request%2Fkeq-headers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keq-request%2Fkeq-headers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keq-request","download_url":"https://codeload.github.com/keq-request/keq-headers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keq-request%2Fkeq-headers/sbom","scorecard":{"id":555948,"data":{"date":"2025-08-11","repo":{"name":"github.com/keq-request/keq-headers","commit":"473cc8ed00ea67d00c4147602069efe3f07bd217"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/29 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":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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/auto-assign.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/keq-request/keq-headers/auto-assign.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/keq-request/keq-headers/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/keq-request/keq-headers/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/keq-request/keq-headers/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/keq-request/keq-headers/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/keq-request/keq-headers/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/keq-request/keq-headers/test.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/auto-assign.yml:1","Warn: no topLevel permission defined: .github/workflows/test.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":"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":"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":"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":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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:10"],"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":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 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-20T12:20:01.985Z","repository_id":48835793,"created_at":"2025-08-20T12:20:01.985Z","updated_at":"2025-08-20T12:20:01.985Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28513628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: 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":["client","header","headers","http","keq","middleware"],"created_at":"2026-01-17T17:37:01.980Z","updated_at":"2026-01-17T17:37:02.608Z","avatar_url":"https://github.com/keq-request.png","language":"TypeScript","readme":"\u003c!-- title --\u003e\n\u003cp align=\"center\" style=\"padding-top: 41px\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/keq-request/keq/refs/heads/master/images/logo.svg\" width=\"121\" alt=\"logo\" /\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\" style=\"text-align: center\"\u003eKEQ-HEADERS\u003c/h2\u003e\n\u003c!-- title --\u003e\n\n[![version](https://img.shields.io/npm/v/keq-headers.svg?style=for-the-badge)](https://www.npmjs.com/package/keq-headers)\n[![downloads](https://img.shields.io/npm/dm/keq-headers.svg?style=for-the-badge)](https://www.npmjs.com/package/keq-headers)\n[![license](https://img.shields.io/npm/l/keq-headers.svg?style=for-the-badge)](https://www.npmjs.com/package/keq-headers)\n[![dependencies](https://img.shields.io/librariesio/release/npm/keq-headers?style=for-the-badge)](https://www.npmjs.com/package/keq-headers)\n[![Codecov](https://img.shields.io/codecov/c/gh/keq-request/keq-headers?logo=codecov\u0026token=PLF0DT6869\u0026style=for-the-badge)](https://codecov.io/gh/keq-request/keq-headers)\n\n[Document EN]: https://keq-request.github.io/guide/libraries/keq-headers\n[Document CN]: https://keq-request.github.io/zh/guide/libraries/keq-headers\n\n[**Document**][Document EN] | [**中文文档**][Document CN]\n\nSet/Append headers to request.\n\n## Usage\n\n```typescript\nimport { request } from \"keq\";\nimport {\n  setHeader,\n  setHeaders,\n  appendHeader,\n  appendHeaders,\n  insertHeader,\n  insertHeaders,\n} from \"keq-headers\";\n\nrequest\n  .use(setHeader(\"x-user-name\", \"Kerry\"))\n  .use(appendHeader(\"x-user-name\", \"Marry\"))\n  .use(insertHeader(\"x-user-name\", \"J\"))\n  .use(\n    setHeaders({\n      \"x-user-name\": \"Kerry\",\n      \"x-user-id\": \"1\",\n    })\n  )\n  .use(\n    appendHeaders({\n      \"x-user-name\": \"Marray\",\n      \"x-user-id\": \"1\",\n    })\n  )\n  .use(\n    insertHeaders({\n      \"x-user-name\": \"J\",\n      \"x-user-id\": 1,\n    })\n  );\n```\n\n| **Middleware** | **Description**                                                            |\n| :------------- | :------------------------------------------------------------------------- |\n| setHeader      | Set a header.If it already exists, the original value will be overwritten. |\n| setHeaders     | Set headers.If it already exists, the original value will be overwritten.  |\n| appendHeader   | Append a header.                                                           |\n| appendHeaders  | Append headers.                                                            |\n| insertHeader   | Set a header, if it isn't existed.                                         |\n| insertHeaders  | Set headers, if it isn't existed.                                          |\n\n## Contributing \u0026 Development\n\nIf there is any doubt, it is very welcome to discuss the issue together.\n","funding_links":["https://patreon.com/val_istar_guo"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeq-request%2Fkeq-headers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeq-request%2Fkeq-headers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeq-request%2Fkeq-headers/lists"}