Coder Social home page Coder Social logo

alxndr / plug_prayer_flag Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 20 KB

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

Home Page: https://hex.pm/packages/plug_prayer_flag

License: GNU General Public License v3.0

Elixir 100.00%

plug_prayer_flag's Introduction

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.

plug_prayer_flag's People

Contributors

alxndr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

plug_prayer_flag's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.