Phoenix.Plugs.ContentTypeFetcher
Plug to parse Accept headers for response content-type
Used by Phoenix.Controller to determine extension of render/3 template
Lookup priority
1. format param of mime extension, ie “html”, “json”, “xml” 2. Accept header, ie “text/html,application/xml;q=0.9,/;q=0.8” 3. “text/html” default fallback
Summary
| accept_formats(conn) | Returns the List of String Accept headers, in order of priority |
| call(conn, ) | |
| fetch(conn) | Assigns the String response content-type to private :phoenix_content_type |
| init(opts) |