Skip to content

AI junk#6090

Closed
aouxwoux wants to merge 1 commit into
pallets:mainfrom
aouxwoux:codex/http-query-support
Closed

AI junk#6090
aouxwoux wants to merge 1 commit into
pallets:mainfrom
aouxwoux:codex/http-query-support

Conversation

@aouxwoux

Copy link
Copy Markdown

Summary

  • add app.query() and blueprint.query() route shortcuts
  • dispatch QUERY requests to MethodView.query() and include the method in automatic method discovery
  • add focused route and class-based view tests
  • document QUERY for safe, body-carrying read-only queries

Why

HTTP QUERY (RFC 10008) provides a standardized way to send a safe, idempotent query with a request body. Flask already accepts arbitrary method names through route; this adds the ergonomic APIs users expect alongside get, post, put, patch, and delete.

Validation

  • python -m pytest -q tests/test_basic.py tests/test_views.py — 149 passed
  • python -m compileall -q src/flask/sansio/scaffold.py src/flask/views.py tests/test_basic.py tests/test_views.py
  • git diff --check

Fixes #6065

Signed-off-by: aouxwoux <81102668+aouxwoux@users.noreply.github.com>
@davidism davidism closed this Jul 10, 2026
@davidism davidism changed the title feat: add HTTP QUERY method support AI junk Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a query() route shortcut and MethodView support for HTTP QUERY (RFC 10008)

2 participants