Skip to content

gh-153309: Add HTTP QUERY method (RFC 10008) to http library - #155786

Merged
orsenthil merged 1 commit into
python:mainfrom
mbeijen:httplib-query-method-rfc-10008
Nov 14, 2026
Merged

orsenthil merged 1 commit into
python:mainfrom
mbeijen:httplib-query-method-rfc-10008

Conversation

@mbeijen

@mbeijen mbeijen commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

RFC 10008: The HTTP QUERY Method is now a finalized RFC on the Standards track, and the method name has been added to the IANA registry

Add it to http library HTTPMethod enum, too

This is the second try of #153310

@mbeijen
mbeijen requested a review from AA-Turner as a code owner August 14, 2026 12:06
@mbeijen mbeijen changed the title Add HTTP QUERY method (RFC 10008) to http library gh-153309: Add HTTP QUERY method (RFC 10008) to http library Aug 14, 2026
@read-the-docs-community

read-the-docs-community Bot commented Aug 14, 2026 •

Copy link
Copy Markdown

@mbeijen
mbeijen force-pushed the httplib-query-method-rfc-10008 branch from 36b8be9 to 20c261e Compare November 12, 2026 18:23
@mbeijen
mbeijen requested a review from orsenthil as a code owner November 12, 2026 18:23
Comment thread Lib/http/client.py
# We always set the Content-Length header for these methods because some
# servers will otherwise respond with a 411
_METHODS_EXPECTING_BODY = {'PATCH', 'POST', 'PUT'}
_METHODS_EXPECTING_BODY = {'PATCH', 'POST', 'PUT', 'QUERY'}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this sufficient? Doesn't QUERY define any state expectations from HTTP?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In http.client, indeed this is all there is needed. Thinking about it, we might want to add redirect handling in urllib.request for QUERY, but that would be a separate PR.

@orsenthil
orsenthil merged commit 646673c into python:main Nov 14, 2026
59 of 61 checks passed
@mbeijen
mbeijen deleted the httplib-query-method-rfc-10008 branch November 15, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants