{"id":13508131,"url":"https://github.com/c-rack/plug_response_header","last_synced_at":"2025-10-12T06:22:04.620Z","repository":{"id":30402426,"uuid":"33955199","full_name":"c-rack/plug_response_header","owner":"c-rack","description":"Elixir Plug to manipulate HTTP response headers","archived":false,"fork":false,"pushed_at":"2015-09-07T11:20:17.000Z","size":188,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-01T07:33:26.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-rack.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":"2015-04-14T20:25:21.000Z","updated_at":"2023-09-01T12:17:54.000Z","dependencies_parsed_at":"2022-09-08T09:02:37.366Z","dependency_job_id":null,"html_url":"https://github.com/c-rack/plug_response_header","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-rack%2Fplug_response_header","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-rack%2Fplug_response_header/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-rack%2Fplug_response_header/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-rack%2Fplug_response_header/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-rack","download_url":"https://codeload.github.com/c-rack/plug_response_header/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224385194,"owners_count":17302442,"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-08-01T02:00:48.642Z","updated_at":"2025-10-12T06:22:04.500Z","avatar_url":"https://github.com/c-rack.png","language":"Elixir","funding_links":[],"categories":["Framework Components"],"sub_categories":[],"readme":"# PlugResponseHeader [![Hex.pm Version](http://img.shields.io/hexpm/v/plug_response_header.svg)](https://hex.pm/packages/plug_response_header)\n\n\nThis [Elixir](http://elixir-lang.org/) [plug](https://github.com/elixir-lang/plug) allows manipulation of [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) response headers:\n\n* Deleting one or more HTTP response headers.\n* Setting one or more HTTP response headers.\n* Setting the HTTP \"Server\" response header.\n\nThis plug supports the following options. At least one option must be specified.\n\n* `delete`: a bitstring or a list of bitstrings of header keys to be deleted.\n* `server`: convenience function for `set: [\"server\": \"MyServer\"]`\n* `set`: a list of key/value pairs for headers to be set.\n\n## Setup\n\nTo use the plug in your projects, edit your mix.exs file and add the project as a dependency:\n\n```elixir\ndefp deps do\n  [\n    {:plug_response_header, \"~\u003e 0.2.1\"}\n  ]\nend\n```\n\n## Usage\n\n```elixir\npipeline :browser do\n  plug PlugResponseHeader,\n    delete: \"x-request-id\",\n    server: \"MyServer\",\n    set: [\n      \"strict-transport-security\": \"max-age=31536000\",\n      \"cache-control\": \"no-transform\"\n    ]\n    ...\nend\n```\n\n## License\n\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-rack%2Fplug_response_header","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-rack%2Fplug_response_header","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-rack%2Fplug_response_header/lists"}