Unplug v0.2.0 Unplug.Predicates.RequestHeaderEquals View Source

Given a request header, execute the plug if the request value matches the expected value.

Usage:

plug Unplug,
  if: {Unplug.Predicates.RequestHeaderEquals, {"authorization", "super_secret"}},
  do: MyApp.Plug