WordPress / WordPress/Requests

Support fror QUERY HTTP method

Open
#1,074 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Core Type: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.