Skip to content

feat: Add QUERY method (RFC 10008) support #81

Description

@ivamly

Currently, gleam_http defines HTTP methods based on RFC 2616 and RFC 5789. However, in June 2026, the IETF published RFC 10008 which officially standardizes the QUERY method.

The QUERY method is designed for safe, idempotent requests that carry a request payload (body) but do not modify server state. It fills the gap between:

  • GET — safe and cacheable but doesn't support request bodies (per spec)
  • POST — supports request bodies but is neither safe, idempotent, nor cacheable

Proposal: Add Query variant to the Method type.

If this gets approved, I'd be happy to submit a PR with the implementation, tests, and documentation! 🚀

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions