Home » U++ Library support » Skylark » Suport for OPTIONS request
Suport for OPTIONS request [message #59083] |
Fri, 28 October 2022 15:22 |
Zbych
Messages: 327 Registered: July 2009
|
Senior Member |
|
|
Hi,
Is there any plan to add support for OPTIONS requests?
I ask, because right now OPTIONS are treated as GET requests and every time a browser sends OPTIONS before GET, my handler is called twice.
As a temporary solution I added GetMethod() to Skylark/http.h to expose method name in skylark handlers.
String GetHeader(const char *s) const { return hdr[s]; }
String GetMethod() const { return hdr.GetMethod(); } //<---
And at least i can differentiate GET and OPTIONS
|
|
|
Goto Forum:
Current Time: Fri Feb 14 09:00:58 CET 2025
Total time taken to generate the page: 0.02884 seconds
|