{"id":22881496,"url":"https://github.com/luludotdev/caddy-requestid","last_synced_at":"2025-05-07T03:11:24.638Z","repository":{"id":38831362,"uuid":"283001409","full_name":"luludotdev/caddy-requestid","owner":"luludotdev","description":"Caddy v2 Module that sets a unique request ID placeholder.","archived":false,"fork":false,"pushed_at":"2023-08-11T08:17:34.000Z","size":173,"stargazers_count":23,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T05:41:31.124Z","etag":null,"topics":["caddy","caddy-plugin","caddyserver"],"latest_commit_sha":null,"homepage":"","language":"Go","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/luludotdev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-27T19:54:07.000Z","updated_at":"2024-11-28T19:11:53.000Z","dependencies_parsed_at":"2024-06-18T21:32:18.881Z","dependency_job_id":null,"html_url":"https://github.com/luludotdev/caddy-requestid","commit_stats":null,"previous_names":["luludotdev/caddy-requestid","lolpants/caddy-requestid"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fcaddy-requestid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fcaddy-requestid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fcaddy-requestid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fcaddy-requestid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luludotdev","download_url":"https://codeload.github.com/luludotdev/caddy-requestid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252804220,"owners_count":21806771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["caddy","caddy-plugin","caddyserver"],"created_at":"2024-12-13T17:37:31.197Z","updated_at":"2025-05-07T03:11:24.620Z","avatar_url":"https://github.com/luludotdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caddy Request ID\n\u003e Caddy v2 Module that sets unique request ID placeholders.\n\n## Usage\n### Caddyfile\n```\nrequest_id [\u003clength\u003e] {\n  [\u003ckey\u003e \u003clength\u003e]\n  ...\n}\n```\n* **length** - length of ID to generate, defaults to 21\n* **key, length** - additional keys to generate independent IDs for\n\nIf you wish to use the directive in a top level block, you must explicitly define the order.\n```\n{\n  order request_id before header\n}\n```\n\n### JSON Config\n```json5\n{\n  \"handler\": \"request_id\",\n  \"length\": 21, // optional\n  \"additional\": { // optional\n    \"header\": 21,\n  }\n}\n```\n\n### Placeholders\nThe top level request ID will be set in the `{http.request_id}` placeholder. Any additional IDs will be set in the `{http.request_id.\u003ckey\u003e}` placeholder.\n\n## Example\nThe following example Caddyfile sets a different request ID for response bodies and headers.\n```\n{\n  order request_id before header\n}\n\nlocalhost {\n  request_id {\n    body 10\n    header 21\n  }\n\n  header * x-request-id \"{http.request_id.header}\"\n  respond * \"{http.request_id.body}\" 200\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluludotdev%2Fcaddy-requestid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluludotdev%2Fcaddy-requestid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluludotdev%2Fcaddy-requestid/lists"}