-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Support for 'QUERY' method #51562
Copy link
Copy link
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.http_parserIssues and PRs related to the HTTP Parser dependency or the http_parser binding.Issues and PRs related to the HTTP Parser dependency or the http_parser binding.
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.http_parserIssues and PRs related to the HTTP Parser dependency or the http_parser binding.Issues and PRs related to the HTTP Parser dependency or the http_parser binding.
Version
v20.10.0
Platform
Linux evertbook6f 6.6.11-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 10 19:25:59 UTC 2024 x86_64 GNU/Linux
Subsystem
node:http
What steps will reproduce the bug?
The
QUERYhttp method has a fair bit of interest and will likely at some point get standardized. There's a draft here:https://www.ietf.org/archive/id/draft-ietf-httpbis-safe-method-w-body-02.html
Currently (as far as I'm aware) it's not possible to define custom methods in the Node
httppackage, preventing users from testing with this. Although I understand this was probably done for parser performance reasons, HTTP does have an explicit extension mechanism for new methods and recommendations on how to treat unknown ones, so I do feel it goes a bit counter against the spirit of HTTP to not allow new methods. Browsers will for example let users use any (unregistered) http method infetch().That said, I understand that supporting any unknown HTTP method is probably a lot of work, so I'll settle for having support for the
QUERYhttp method!How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
Currently Node returns a
400 Bad RequestAdditional information
No response