Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 325
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: Thu Apr 25 19:58:38 CEST 2024

Total time taken to generate the page: 0.03498 seconds