Support HTTP QUERY method in Azure Functions
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 215
- Avg merge
- 4h 2m
- Merged PRs (30d)
- 1
Description
Hi,
Thank you for the work on this library , we largely depend on this library for our production-grade APIs.
While this may be bit too early , I was wondering if this is on the roadmap :
Support the new HTTP `QUERY` method defined in RFC 10008 for Azure Functions HTTP triggers.
Reference:
https://www.rfc-editor.org/info/rfc10008/
## Background
The new HTTP `QUERY` method addresses the gap between `GET` and `POST`.
Currently, APIs often use:
- `GET` for simple read operations where parameters are passed in the URL.
- `POST` for complex read-only queries because it supports a request body.
However, using `POST` for read-only operations is not semantically ideal. The `QUERY` method provides a safe, read-only HTTP method that supports a request body for complex queries.
## Proposed Feature
Allow Azure Functions HTTP triggers to handle `QUERY` requests in the same way they currently support methods such as:
- GET
- POST
- PUT
- PATCH
- DELETE
Example:
```http
QUERY /api/products HTTP/1.1
Content-Type: application/json
{
"category": "laptops",
"brands": [
"Dell",
"Lenovo"
],
"price": {
"min": 1000,
"max": 2500
}
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.