Phoenix.Plugs.Accepts
Plug to handle which Accept headers a Plug stack accepts. Unaccepted mime-types will return a 400 Bad Request response
Examples
plug Phoenix.Plugs.Accepts, ["html", "json"]
Summary
| call(conn, extensions) |
| init(opts) |
Plug to handle which Accept headers a Plug stack accepts. Unaccepted mime-types will return a 400 Bad Request response
plug Phoenix.Plugs.Accepts, ["html", "json"]
| call(conn, extensions) |
| init(opts) |