Skip to content

Feature Request: Add Native Support for the HTTP QUERY Method (RFC 10008) #1872

Description

@EnigmaSaikat

Hi Rest Assured team,

With the publication of RFC 10008 (The HTTP QUERY Method), HTTP now officially includes the QUERY request method.

It would be great if Rest Assured could provide first-class support similar to the existing methods:

given()
    .contentType(ContentType.JSON)
    .body(requestBody)
.when()
    .query("/search")
.then()
    .statusCode(200);

or

query("/search");

instead of requiring:

given()
    .body(requestBody)
    .request("QUERY", "/search");

Why?

  • QUERY is now a standardized HTTP method (RFC 10008).
  • Rest Assured already exposes convenience methods for other HTTP methods (get(), post(), put(), patch(), delete(), etc.).
  • Native support would improve readability, discoverability, IDE auto-completion, and consistency with the existing API.

Since Rest Assured already supports arbitrary methods through request(String method, ...), adding dedicated query() overloads should be largely a convenience API while aligning with the latest HTTP standard.

Thanks for considering this enhancement!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions