U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Skylark » Suport for OPTIONS request
Suport for OPTIONS request [message #59083] Fri, 28 October 2022 15:22
Zbych is currently offline  Zbych
Messages: 332
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
Previous Topic: delete the file from the skylark/server after download
Next Topic: light for Skylark
Goto Forum:
  


Current Time: Tue May 05 15:14:09 GMT+2 2026

Total time taken to generate the page: 0.00451 seconds