Open xiazuojie opened 3 weeks ago
Hi @xiazuojie !
Can you clarify if you mean you want either:
http_server
simply to OPTIONS
requests with the valid request methodshttp_server
to accept OPTIONS
requests but then generate events based on them. If so, what content would you like to see in the event?Hi @xiazuojie !
Can you clarify if you mean you want either:
- The
http_server
simply toOPTIONS
requests with the valid request methods- The
http_server
to acceptOPTIONS
requests but then generate events based on them. If so, what content would you like to see in the event?
I mean option 2. The content should be the same as any other request methods. For OPTIONS request method, the http body is usually null but the headers and query params could be used.
A note for the community
Use Cases
Currently, http_server source supports DELETE, GET, HEAD, PATCH, POST, and PUT request methods. OPTIONS request method is somehow missing. We want vector's http server to handle CORS preflight request which uses OPTIONS request method.
Attempted Solutions
Add support of OPTIONS request method in the code.
Proposal
No response
References
No response
Version
0.40.1