Commit 29010be
authored
feat: add support for the HTTP QUERY method (RFC 10008) (#1187)
RFC 10008 defines QUERY, a safe and idempotent HTTP method that carries the query as request content, filling the gap between GET and POST.
- Add the MethodQuery constant.
- Add the Request.Query(url) helper, matching the existing verb helpers.
- Send the request body for QUERY (isPayloadSupported), since QUERY always carries content.
- Classify QUERY as idempotent (enables automatic retries) and read-only (enables hedging), per its RFC 10008 safe and idempotent semantics.
- Add tests for the helper and the classification.
* docs: add early-adoption note to Request.Query (review)1 parent ea5b6cf commit 29010be
4 files changed
Lines changed: 60 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1438 | 1438 | | |
1439 | 1439 | | |
1440 | 1440 | | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
1441 | 1453 | | |
1442 | 1454 | | |
1443 | 1455 | | |
| |||
1800 | 1812 | | |
1801 | 1813 | | |
1802 | 1814 | | |
1803 | | - | |
| 1815 | + | |
| 1816 | + | |
1804 | 1817 | | |
1805 | 1818 | | |
1806 | 1819 | | |
| |||
1853 | 1866 | | |
1854 | 1867 | | |
1855 | 1868 | | |
| 1869 | + | |
1856 | 1870 | | |
1857 | 1871 | | |
1858 | 1872 | | |
| |||
0 commit comments