Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions http/unstable_method.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2018-2026 the Deno authors. MIT license.
// This module is browser compatible.
// This module is generated from {@link https://www.iana.org/assignments/http-methods/http-methods.xhtml#methods | IANA Hypertext Transfer Protocol (HTTP) Method Registry}
// The wildcard method "*" from the IANA registry is intentionally excluded as it is not a real method name.

/**
* HTTP Methods derived from IANA Hypertext Transfer Protocol (HTTP) Method Registry
Expand Down Expand Up @@ -34,14 +35,14 @@ export const METHOD = {
/**
* CHECKIN (Safe: no; Idempotent: yes)
*
* @see {@link https://www.iana.org/go/rfc3253 | RFC3253, Section 4.4, Section 9.4}
* @see {@link https://www.iana.org/go/rfc3253 | RFC3253, Section 9.4}
*/
Checkin: "CHECKIN",

/**
* CHECKOUT (Safe: no; Idempotent: yes)
*
* @see {@link https://www.iana.org/go/rfc3253 | RFC3253, Section 4.3, Section 8.8}
* @see {@link https://www.iana.org/go/rfc3253 | RFC3253, Section 8.8}
*/
Checkout: "CHECKOUT",

Expand Down Expand Up @@ -211,6 +212,13 @@ export const METHOD = {
*/
Put: "PUT",

/**
* QUERY (Safe: yes; Idempotent: yes)
*
* @see {@link https://www.iana.org/go/draft-ietf-httpbis-safe-method-w-body-14 | RFC-ietf-httpbis-safe-method-w-body-14, Section 2}
*/
Query: "QUERY",

/**
* REBIND (Safe: no; Idempotent: yes)
*
Expand Down Expand Up @@ -291,7 +299,7 @@ export const METHOD = {
} as const;

/**
* A HTTP Method
* An HTTP Method
*
* @experimental **UNSTABLE**: New API, yet to be vetted.
*/
Expand Down
1 change: 1 addition & 0 deletions http/unstable_method_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Deno.test({
assertEquals(METHOD.Put, "PUT");
assertEquals(METHOD.Delete, "DELETE");
assertEquals(METHOD.Options, "OPTIONS");
assertEquals(METHOD.Query, "QUERY");
assertEquals(METHOD.Label, "LABEL");
},
});
Loading