Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add support for the QUERY HTTP method #6869

Closed
gdubicki opened this issue Jan 11, 2025 · 2 comments
Closed

Please add support for the QUERY HTTP method #6869

gdubicki opened this issue Jan 11, 2025 · 2 comments
Labels
actions/autoclose-feat Used for automation to auto-close an issue Feature Request

Comments

@gdubicki
Copy link
Contributor

On 2025-01-07 the QUERY HTTP method, "a safe, idempotent request method that can carry request content." has reached the level of a Proposed Standard.

It solves the problem of making complex queries where the GET method is sometimes sufficient as it (according to the standard) lacks support for sending the query in the body, leaving only the query part of the URL which is limited. An often used workaround of using the POST method has a downside in that it's just the wrong method for this purpose as queries do not cause side-effects and this limits the retryabilty and cacheability of such queries.

Therefore It would be great to implement support for QUERY in Requests.

If you are open to it, I am interested in providing a PR.

@gdubicki gdubicki added actions/autoclose-feat Used for automation to auto-close an issue Feature Request labels Jan 11, 2025
Copy link

As described in the template, Requests is not accepting feature requests

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 11, 2025
@github-actions github-actions bot locked as off-topic and limited conversation to collaborators Jan 11, 2025
@sigmavirus24
Copy link
Contributor

To be clear, QUERY is already supported. Both requests.request and requests.Session.request allow for passing an arbitrary method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
actions/autoclose-feat Used for automation to auto-close an issue Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants