Skip to content

Add RFC 10008: The HTTP QUERY Method #153309

Open

Description

@mbeijen

Feature or enhancement

Proposal:

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

So let's add it to python httplib too!

from http import HTTPMethod

HTTPMethod.QUERY
<HTTPMethod.QUERY>
HTTPMethod.QUERY == 'QUERY'
True
HTTPMethod.QUERY.description
''Query the target with the request payload.'

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Jul 8, 2026
  2. Dreamsorcerer commented on Jul 16, 2026

    @Dreamsorcerer
    Contributor

    HTTPMethod only holds 9 methods currently, which is the 8 methods in RFC 9110, plus PATCH.
    I'd assume that cpython doesn't want to track every single method in the registry, so it wouldn't make sense to add this one unless it became very common (e.g. PATCH is used in many REST APIs).

  3. mbeijen commented on Jul 16, 2026

    @mbeijen
    ContributorAuthor

    HTTPMethod only holds 9 methods currently, which is the 8 methods in RFC 9110, plus PATCH.
    I'd assume that cpython doesn't want to track every single method in the registry, so it wouldn't make sense to add this one unless it became very common (e.g. PATCH is used in many REST APIs).

    I definitely would not like to have all IANA methods, but 9110 plus PATCH plus QUERY, which is why I made this PR. QUERY has been a long time coming and I'm sure will see strong adoption. Especially because cpython has long release cycles (it will be quite some time before everyone will be on 3.16) I think it's the best time to add QUERY right now.

  4. added 2 commits that reference this issue on Aug 14, 2026
    f3b839d
    ccd5ca2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions