WordPress / WordPress/Requests
Support fror QUERY HTTP method
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 500
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 5
Description
Is your feature request related to a problem?
This is a placeholder issue for adding a new feature to the Requests library.
New HTTP verb QUERY landed in June this year (https://www.rfc-editor.org/info/rfc10008/).
It's similar to GET, but can have a request body (like POST).
Describe the solution you'd like
Requests should add this method to the constant list, and associated method in Requests.php, alongside with any other necessary code for it.
Additional context (optional)
Associated WP trac ticket: https://core.trac.wordpress.org/ticket/65616
I haven't delved deeply into Requests, so I am not 100% sure what needs to be added besides constants and methods, but I can create a PR if necessary for it.
- I intend to create a pull request to implement this feature myself.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in Requests.php by inspecting the HTTP verb constants and existing GET and POST methods. Trace any related request-building code and existing tests, then confirm that QUERY is exposed as a method and supports a request body like POST.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100