From f1a1252aceb1b5b0fce62c2bb99309f6caced792 Mon Sep 17 00:00:00 2001 From: Savas Date: Mon, 22 Jun 2026 22:26:18 +0300 Subject: [PATCH] chore: reclassify QUERY method as standardized (RFC 10008) --- src/llhttp/constants.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/llhttp/constants.ts b/src/llhttp/constants.ts index dd64c623..f500c83e 100644 --- a/src/llhttp/constants.ts +++ b/src/llhttp/constants.ts @@ -225,6 +225,11 @@ export const METHODS_BASIC_HTTP = { */ PATCH: 28, + /** + * @see https://www.rfc-editor.org/rfc/rfc10008.html + */ + QUERY: 46, + /* RFC-2068, section 19.6.1.2 */ LINK: 31, UNLINK: 32, @@ -268,9 +273,6 @@ export const METHODS_NON_STANDARD = { * Not defined in any RFC but commonly used */ PURGE: 29, - - /* DRAFT https://www.ietf.org/archive/id/draft-ietf-httpbis-safe-method-w-body-02.html */ - QUERY: 46, } as const; export const METHODS_ICECAST = {