View Source Unplug.Predicates.RequestHeaderEquals (Unplug v1.1.0)

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