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)

Functions

call(conn, extensions)
init(opts)