{"id":22196654,"url":"https://github.com/druids/ring-headers-formatter","last_synced_at":"2026-07-03T18:03:13.898Z","repository":{"id":57713977,"uuid":"116243975","full_name":"druids/ring-headers-formatter","owner":"druids","description":"A Ring's middleware converts headers into Title-Case and returns keys/values as strings","archived":false,"fork":false,"pushed_at":"2018-03-05T10:14:09.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T02:14:11.875Z","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-01-04T09:58:08.000Z","updated_at":"2018-01-04T11:06:38.000Z","dependencies_parsed_at":"2022-08-25T10:32:15.659Z","dependency_job_id":null,"html_url":"https://github.com/druids/ring-headers-formatter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fring-headers-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fring-headers-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fring-headers-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fring-headers-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/druids","download_url":"https://codeload.github.com/druids/ring-headers-formatter/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.259Z","updated_at":"2025-10-26T23:04:32.129Z","avatar_url":"https://github.com/druids.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"ring-headers-formatter\n======================\n\nA Ring's middleware that converts response's headers into Title-Case and make sure that keys and values are strings.\"\n\n[![CircleCI](https://circleci.com/gh/druids/ring-headers-formatter.svg?style=svg)](https://circleci.com/gh/druids/ring-headers-formatter)\n[![Dependencies Status](https://jarkeeper.com/druids/ring-headers-formatter/status.png)](https://jarkeeper.com/druids/ring-headers-formatter)\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-headers-formatter \"0.1.2\"]\n```\n\n\nDocumentation\n-------------\n\n\nWrap your handlers into `wrap-response-headers`.\n\n```clojure\n(require '[ring-headers-formatter.core :refer [wrap-response-headers]]\n         '[ring.util.response :refer [response]])\n\n(defn handler [request]\n  {:response {:foo \"bar\"}, :headers {:x-limit 100}})\n\n(def app\n  (wrap-response-headers handler))\n```\n\nAnd response's headers will be formatted like this:\n\n```clojure\n{:response {:foo \"bar\"}, :headers {\"X-Limit\" \"100\"}}\n```\n\nPlease notice that lazy sequences in values aren't converted into strings, rather they passed as they are.\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-headers-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdruids%2Fring-headers-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Fring-headers-formatter/lists"}