Home

Awesome

PlugResponseHeader Hex.pm Version

This Elixir plug allows manipulation of HTTP response headers:

This plug supports the following options. At least one option must be specified.

Setup

To use the plug in your projects, edit your mix.exs file and add the project as a dependency:

defp deps do
  [
    {:plug_response_header, "~> 0.2.1"}
  ]
end

Usage

pipeline :browser do
  plug PlugResponseHeader,
    delete: "x-request-id",
    server: "MyServer",
    set: [
      "strict-transport-security": "max-age=31536000",
      "cache-control": "no-transform"
    ]
    ...
end

License

Apache License, Version 2.0