Liberator.Resource.known_methods
You're seeing just the callback
known_methods
, go back to Liberator.Resource module for more information.
Specs
known_methods(Plug.Conn.t()) :: list()
Returns a list of HTTP methods that exist.
Note that this is to filter bad HTTP requests, not to filter requests that your endpoint does not serve.
You probably want to implement allowed_methods/1
instead.
The methods returned by this function should be upper-case strings, like "GET"
, "POST"
, etc.