Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alxndr/plug_prayer_flag
Spread good will and compassion throughout the Web with an HTTP header.
https://github.com/alxndr/plug_prayer_flag
Last synced: 19 days ago
JSON representation
Spread good will and compassion throughout the Web with an HTTP header.
- Host: GitHub
- URL: https://github.com/alxndr/plug_prayer_flag
- Owner: alxndr
- License: gpl-3.0
- Created: 2017-12-20T16:11:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T02:14:02.000Z (over 6 years ago)
- Last Synced: 2024-11-28T21:49:05.017Z (24 days ago)
- Language: Elixir
- Homepage: https://hex.pm/packages/plug_prayer_flag
- Size: 19.5 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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.][wikipedia-prayer-flags]
## Installation
If [available in Hex](https://hex.pm/docs/publish), 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"}]
end2. Ensure `plug_prayer_flag` is started before your application:
def application do
[applications: [:plug_prayer_flag]]
end3. Use `PlugPrayerFlag` in `web/router.ex`:
pipeline :browser do
plug :accepts, ["html"]
# ...
plug PlugPrayerFlag
end4. Rejoice! Now the other servers, wires, and fiber which will carry your HTTP payloads will be purified and sanctified.
-------
[wikipedia-prayer-flags]: https://wikipedia.org/wiki/Prayer_flag