Liberator.Resource.known_method-question-mark
You're seeing just the callback
known_method-question-mark
, go back to Liberator.Resource module for more information.
Specs
known_method?(Plug.Conn.t()) :: true | false
Check of the HTTP method in the request is one we know about.
This is different from allowed_methods/1
in that this function
checks to see if the given HTTP method is an HTTP method at all.
You probably want to override allowed_methods/1
and not this one,
unless you're extending HTTP with more verbs.
If this function returns false
, then the plug will return a 501 Unknown Method response.
By default, allows the methods returned by known_methods/1
.