Skip to content
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

HTTP verbs that Node.js core's HTTP parser supports.

This package exports a lowercased copy of [Node.js's `http.METHODS`](https://nodejs.org/api/http.html#httpmethods). Browser bundles use a snapshot of the methods supported by Node.js 0.10 and need no HTTP shim.
This package exports a lowercased copy of [Node.js's `http.METHODS`](https://nodejs.org/api/http.html#httpmethods). Browser bundles use a snapshot from Node.js 26 and need no HTTP shim.

## Install

Expand Down
43 changes: 26 additions & 17 deletions src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,41 @@
* MIT Licensed
*/

// Snapshot of the HTTP methods supported by Node.js 0.10.
// Snapshot of http.METHODS from Node.js 26, in lowercase.
export const methods = [
"acl",
"bind",
"checkout",
"connect",
"copy",
"delete",
"get",
"post",
"put",
"head",
"delete",
"options",
"trace",
"copy",
"link",
"lock",
"m-search",
"merge",
"mkactivity",
"mkcalendar",
"mkcol",
"move",
"purge",
"notify",
"options",
"patch",
"post",
"propfind",
"proppatch",
"unlock",
"purge",
"put",
"query",
"rebind",
"report",
"mkactivity",
"checkout",
"merge",
"m-search",
"notify",
"search",
"source",
"subscribe",
"trace",
"unbind",
"unlink",
"unlock",
"unsubscribe",
"patch",
"search",
"connect",
];