Plug is a specification for composable modules between web applications.
It also offers connection adapters for different web servers in the Erlang VM
Plug is free and open source software.
This project aims to ship with different plugs that can be re-used across applications:
- Plug.BasicAuth – provides Basic HTTP authentication.
- Plug.CSRFProtection – adds Cross-Site Request Forgery protection to your application. Typically required if you are using Plug.Session.
- Plug.Head – converts HEAD requests to GET requests.
- Plug.Logger – logs requests.
- Plug.MethodOverride – overrides a request method with one specified in the request parameters.
- Plug.Parsers – responsible for parsing the request body given its content-type.
- Plug.RequestId – sets up a request ID to be used in logs.
- Plug.RewriteOn – rewrite the request’s host/port/protocol from x-forwarded-* headers.
- Plug.Session – handles session management and storage.
- Plug.SSL – enforces requests through SSL.
- Plug.Static – serves static files.
- Plug.Telemetry – instruments the plug pipeline with :telemetry events.
Website: hex.pm/packages/plug
Support: GitHub Code Repositoy
Developer: Plataformatec
License: Apache License, Version 2.0
Plug is written in Elixir. Learn Elixir with our recommended free books and free tutorials.
Related Software
| Elixir Web Frameworks | |
|---|---|
| Phoenix | Rock-solid web framework that improves the Model-View-Controller architecture |
| Nerves | Craft and deploy bulletproof embedded software |
| Plug | Specification for composable web modules |
| Hologram | Full-stack, isomorphic Elixir web framework |
| ALF | Flow-based application layer framework |
| Nex | Minimalist web framework for building server-rendered Elixir applications |
| Maru | REST-like API framework for Elixir inspired by grape |
| Kitto | Framework to create dashboards |
| Sugar | Modular web framework |
| Weber | MVC web framework |
| Trot | Web micro-framework based on Plug and Cowboy |
| Dynamo | Experimental web framework |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.