{"id":22196658,"url":"https://github.com/druids/ring-version-header","last_synced_at":"2025-03-24T22:40:16.279Z","repository":{"id":62434485,"uuid":"127264721","full_name":"druids/ring-version-header","owner":"druids","description":"A Ring's middleware that adds a version into HTTP X-Version header","archived":false,"fork":false,"pushed_at":"2018-03-29T12:48:03.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T02:14:11.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/druids.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-03-29T08:54:38.000Z","updated_at":"2018-03-29T12:48:04.000Z","dependencies_parsed_at":"2022-11-01T21:15:45.602Z","dependency_job_id":null,"html_url":"https://github.com/druids/ring-version-header","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fring-version-header","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fring-version-header/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fring-version-header/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fring-version-header/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/druids","download_url":"https://codeload.github.com/druids/ring-version-header/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245366207,"owners_count":20603438,"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":[],"created_at":"2024-12-02T14:16:00.875Z","updated_at":"2025-03-24T22:40:16.257Z","avatar_url":"https://github.com/druids.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"ring-version-header\n===================\n\nA Ring's middleware that adds a version into HTTP X-Version header.\n\n[![CircleCI](https://circleci.com/gh/druids/ring-version-header.svg?style=svg)](https://circleci.com/gh/druids/ring-version-header)\n[![Dependencies Status](https://jarkeeper.com/druids/ring-version-header/status.png)](https://jarkeeper.com/druids/ring-version-header)\n[![License](https://img.shields.io/badge/MIT-Clause-blue.svg)](https://opensource.org/licenses/MIT)\n\n\nLeiningen/Boot\n--------------\n\n```clojure\n[ring-version-header \"0.1.0\"]\n```\n\nDocumentation\n-------------\n\nWrap your handlers into `wrap-version-header`.\n\n```clojure\n(require '[ring-version-header.core :refer [wrap-version-header]]\n\n(defn handler [request]\n  {:response {:foo \"bar\"}, :headers {}})\n\n(def app\n  (wrap-version-header handler \"1.0.0\"))\n```\n\nAnd `X-Version` will be added into response headers\n\n```clojure\n{:response {:foo \"bar\"}, :headers {\"X-Version\" \"1.0.0\"}}\n```\n\n\nContribution\n------------\n\n### Conventions\n\n* Please follow coding style defined by [`.editorconfig`](http://editorconfig.org)\n and [The Clojure Style Guide](https://github.com/bbatsov/clojure-style-guide)\n* Write [good commit messages](https://chris.beams.io/posts/git-commit/)\n and provide an issue ID in a commit message prefixed by `#`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Fring-version-header","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdruids%2Fring-version-header","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Fring-version-header/lists"}