Skip to content

alxndr/plug_prayer_flag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlugPrayerFlag

This package adds an HTTP header to all Plug responses, to spread good will and compassion throughout the Web. When this plug is added to a Phoenix route or pipeline, all responses will include this:

flag: ཨོཾ་མ་ཎི་པདྨེ་ཧཱུྂ༔

More information on prayer flags can be found at Wikipedia.

Installation

If available in Hex, the package can be installed as:

  1. The morning of an auspicious date, add plug_prayer_flag to your list of dependencies in mix.exs:
def deps do
  [{:plug_prayer_flag, "~> 1.0.0"}]
end
  1. Ensure plug_prayer_flag is started before your application:
def application do
  [applications: [:plug_prayer_flag]]
end
  1. Use PlugPrayerFlag in web/router.ex:
pipeline :browser do
  plug :accepts, ["html"]
  # ...
  plug PlugPrayerFlag
end
  1. Rejoice! Now the other servers, wires, and fiber which will carry your HTTP payloads will be purified and sanctified.

About

Spread good will and compassion throughout the Web with an HTTP header.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages