Skip to content

Add support for the HTTP QUERY method #32975

Closed as not planned
hraskin/spring-framework
#6

Description

@odrotbohm

It's probably rather early stages, but it would be nice if at some point Spring's web frameworks supported the HTTP QUERY method.

Activity

  1. added
    status: waiting-for-triage
    in: web
    type: enhancement
    on Jun 6, 2024
  2. bclozel commented on Jun 6, 2024

    @bclozel
    Member

    Do we know if this method is supported by HTTP clients and servers already?

  3. odrotbohm commented on Jun 6, 2024

    @odrotbohm
    MemberAuthor

    Node 22.2 apparently already shipped it. I didn't file the ticket for immediate resolution, I just thought it would be nice to keep track of for a potential 7.0 at some point.

  4. bclozel commented on Jun 6, 2024

    @bclozel
    Member

    I meant servers that Spring Framework uses.

  5. added
    status: waiting-for-feedback
    and removed
    type: enhancement
    on Jun 6, 2024
  6. bclozel commented on Jun 7, 2024

    @bclozel
    Member

    I have tested this and this already works already for functional handlers (both WebFlux and MVC). The annotation model is not supported at the moment because RequestMethod is an enum. We could consider expanding support in various places (including clients) or generally allowing custom methods as well.

    I'll move this to the backlog until we get more demand for this and concrete use cases.

  7. added
    type: enhancement
    and removed
    status: waiting-for-feedback
    status: waiting-for-triage
    on Jun 7, 2024
  8. added this to the General Backlog milestone on Jun 7, 2024
  9. desiderantes commented on Aug 23, 2024

    @desiderantes
    Contributor

    Don't have any public projects, but for what is worth:

    • I have internal projects that plan to use QUERY for GraphQL, because we want our cache to store those results for some services
    • We have some POST endpoints that would work better as QUERY.
    • We have tooling that allows to set behaviour for caching of custom methods, but blessing a whitelist is extremely annoying across team boundaries.
    • GET query params are usually inadequate for more complex forms of querying, and passing a body for GET sometimes fails in annoying ways (like silently dropping the body if a middleware decides to). Failing to support QUERY is explicit and can be handled better.

    So framework support would be a great help.

  10. 5 remaining items

  11. vpavic commented on Aug 29, 2024

    @vpavic
    Contributor

    I've also got interest in HTTP QUERY (and it eventually being supported in Spring), but from what I can see on IETF Datatracker this is still an expired draft and has been in that state for over year and a half now.

    The link that was posted above (#32975 (comment)) is HTTP working group's internal draft, not an actual representation of the official state of this draft I believe (which IETF Datatracker is).

    Does anyone have any insight into how likely it is this becomes an actual RFC in its current shape?

  12. desiderantes commented on Aug 29, 2024

    @desiderantes
    Contributor

    It's still active as far as I can see

  13. vpavic commented on Aug 30, 2024

    @vpavic
    Contributor

    @desiderantes while the links you share do indicate there's some activity in the source repository where draft is managed, those are not authoritative sources on the actual state of this draft as per IETF - only IETF Datatracker is.

    I guess the draft will eventually get updated over there too, but my point is that it doesn't appear this becoming an RFC is imminent so Spring should be careful about what it adds in the meanwhile.

    IMO the safest thing to do is what @bclozel mentioned in #32975 (comment):

    generally allowing custom methods

  14. desiderantes commented on Oct 1, 2024

    @desiderantes
    Contributor

    Just wanted to update that the draft is active again

  15. desiderantes commented on Oct 8, 2024

    @desiderantes
    Contributor

    Also wanted to note that, even if all custom methods are allowed, QUERY support would be beneficial, since QUERY is a safe method that can be cached and retried.

  16. reopened this on Jun 3, 2025
  17. removed
    status: superseded
    on Jun 3, 2025
  18. added this to the General Backlog milestone on Jun 3, 2025
  19. bclozel commented on Jun 5, 2025

    @bclozel
    Member

    Superseded by #34993

  20. added
    status: superseded
    on Jun 5, 2025
  21. removed this from the General Backlog milestone on Jun 5, 2025
  22. desiderantes commented on Jun 15, 2026

    @desiderantes
    Contributor
  23. aabolfazl commented on Jun 18, 2026

    @aabolfazl

    Since RFC approved I'like to implement sections not implemented yet

  24. bclozel commented on Jun 18, 2026

    @bclozel
    Member

    Thanks for the proposal @aabolfazl, but this is already implemented in #34993.

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

    in: webstatus: supersededtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions