Skip to content

v5 - Add query() route method for HTTP QUERY (RFC 10008) - #3467

Merged
akrabat merged 1 commit into
slimphp:5.xfrom
odan:v5-query
Aug 25, 2026
Merged

v5 - Add query() route method for HTTP QUERY (RFC 10008)#3467
akrabat merged 1 commit into
slimphp:5.xfrom
odan:v5-query

Conversation

@odan

@odan odan commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Add a query() method on App, Router, and RouteGroup for the HTTP QUERY verb (RFC 10008).

QUERY is a safe, idempotent method that may include a request body, so it is a better fit than GET for searches and other parameterized lookups.

Usage

$app->query('/search', function ($request, $response) {
    return $response;
});

@odan odan added the Slim 5 label Aug 23, 2026
@odan

odan commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

@akrabat Please check and approve for v5.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 96.41% (+0.004%) from 96.406% — odan:v5-query into slimphp:5.x

@akrabat
akrabat merged commit c73af58 into slimphp:5.x Aug 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants