[erlang-questions] configure http methods in yaws

Imants Cekusins imantc@REDACTED
Thu Feb 12 21:05:12 CET 2015


if you use appmods:

#arg{} is passed to both appmods' and arg_rewrite_mod's out(Arg) method.

#arg{
 req:: #http_request{ method }
}

see yaws_api.hrl for record definitions


if the method is not expected, out(Arg) may return {redirect, URL} or
{status, StatusCodeInt} or even {'EXIT', normal} (probably best
avoided)


On 12 February 2015 at 20:44, Bogdan Andu <bog495@REDACTED> wrote:
> Hi,
>
> Can anybody tell how to disable or enable http methods in yaws?
>
> For example, I want myu ywas server to serve only GET and POST.
> and I do not want OPTIONS, HEAD, etc
>
> Thanks,
> Bogdan
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list