[erlang-questions] configure http methods in yaws
Fri Feb 13 10:30:28 CET 2015
Yes but the point is to have a default configuration that can be overridden
by such a mechanism
if one is configured.
The 99 percent of cases only need a default behaviour.
The way I see this is to have something like that (all in one):
<LIMIT POST GET>
in this way we can also customize the response if a method other than GET
or POST is sent to the server
On Fri, Feb 13, 2015 at 10:17 AM, Imants Cekusins <imantc@REDACTED> wrote:
> > Traffic with methods not allowed should be discarded with 405
> you see, someone else might prefer another action depending on method
> not allowed.
> a dedicated attribute may be convenient but then someone would ask:
> "how do I change the response code? how do I redirect?". Current
> approach gives you choice.
> one of those cases when there is more than one approach, a prefers A,
> b prefers B. Both have a valid point.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions