PlugResponseHeader Hex.pm Version

This 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"]
    ...
end

License

Apache License, Version 2.0