Packages

Easily abort the processing of a plug stack

Current section

Files

Jump to
plug_abort README.md
Raw

README.md

Abort
=====
```elixir
defmodule Router do
use Plug.Router
import PlugAbort
plug PlugAbort.Wrapper, :text
plug :match
plug :dispatch
get "/" do
abort! 401, unless: authorized(conn)
...
end
end
```