You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by Georgios Petasis <pe...@iit.demokritos.gr> on 2021/07/14 06:05:33 UTC
How rivet handles OPTIONS?
Hi all,
Is there any information/documentation on how rivet handles OPTIONS?
I have a REST service, and I see that sometimes the OPTIONS method fails.
Best,
George
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org
Re: How rivet handles OPTIONS?
Posted by Massimo Manghi <ma...@unipr.it>.
On 7/14/21 10:34 AM, Georgios Petasis wrote:
> Hi again,
>
> To say the truth I also tried to provide my own version of responce, but
> I am not sure if rivet calls my tcl code in the case of options. I still
> see a different response, and not mine, is returned.
>
> George
>
from src/mod_rivet_ng/mod_rivet_generator.c
private->r->allowed |= (1 << M_GET);
private->r->allowed |= (1 << M_POST);
private->r->allowed |= (1 << M_PUT);
private->r->allowed |= (1 << M_DELETE);
if (private->r->method_number != M_GET &&
private->r->method_number != M_POST &&
private->r->method_number != M_PUT &&
private->r->method_number != M_DELETE) {
retval = DECLINED;
goto sendcleanup;
}
so M_OPTIONS is not handled at all and there are many other methods
still to be implemented. Is OPTIONS supposed to be handled in a special way?
-- Massimo
Firma il tuo 5x1000 all’Università di Parma, aiutaci a essere sempre più accoglienti e inclusivi verso le nostre studentesse e i nostri studenti - Indica 00308780345 nella tua denuncia dei redditi.
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org
Re: How rivet handles OPTIONS?
Posted by Georgios Petasis <pe...@apache.org>.
Hi again,
To say the truth I also tried to provide my own version of responce, but
I am not sure if rivet calls my tcl code in the case of options. I still
see a different response, and not mine, is returned.
George
Στις 14/7/2021 09:05, ο/η Georgios Petasis έγραψε:
> Hi all,
>
> Is there any information/documentation on how rivet handles OPTIONS?
>
> I have a REST service, and I see that sometimes the OPTIONS method fails.
>
> Best,
>
> George
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
> For additional commands, e-mail: rivet-dev-help@tcl.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org