-
-
Notifications
You must be signed in to change notification settings - Fork 531
Enhancement: Support the QUERY HTTP method #4626
Copy link
Copy link
Open
Labels
EnhancementThis is a new feature or requestThis is a new feature or request
Description
Summary
Add QUERY to HttpMethod and create a dedicated query route handler decorator that, like the others, delegates to HTTPRouteHandler. In CSRFConfig and other places (not 100% sure where), also add QUERY as a safe method.
Basic Example
@HTTPRouteHandler("/", http_method="QUERY")
def query() -> None:
pass
becomes:
@query("/") # type: ignore
def query() -> None:
pass
Drawbacks and Impact
I'm not familiar enough with Litestar's routing to be able to say what the performance impact would be.
Unresolved questions
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EnhancementThis is a new feature or requestThis is a new feature or request