Popularity
2.5
Stable
Activity
0.0
Stable
12
3
2

Monthly Downloads: 16
Programming language: Elixir
License: Apache License 2.0
Latest version: v0.2.1

plug_response_header alternatives and similar packages

Based on the "Framework Components" category.
Alternatively, view plug_response_header alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of plug_response_header or a related project?

Add another 'Framework Components' Package

README

PlugResponseHeader Hex.pm Version

This Elixir plug allows manipulation of HTTP response headers:

  • Deleting one or more HTTP response headers.
  • Setting one or more HTTP response headers.
  • Setting the HTTP "Server" response header.

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

  • delete: a bitstring or a list of bitstrings of header keys to be deleted.
  • server: convenience function for set: ["server": "MyServer"]
  • set: a list of key/value pairs for headers to be set.

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


*Note that all licence references and agreements mentioned in the plug_response_header README section above are relevant to that project's source code only.