-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e95d41
commit 5e31439
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2022-latest the httpland authors. All rights reserved. MIT license. | ||
// This module is browser compatible. | ||
|
||
/** Standard HTTP methods. */ | ||
export const enum Method { | ||
/** RFC 9110, 9.3.1 */ | ||
Get = "GET", | ||
/** RFC 9110, 9.3.2 */ | ||
Head = "HEAD", | ||
/** RFC 9110, 9.3.3 */ | ||
Post = "POST", | ||
/** RFC 9110, 9.3.4 */ | ||
Put = "PUT", | ||
/** RFC 9110, 9.3.5 */ | ||
Delete = "DELETE", | ||
/** RFC 9110, 9.3.6 */ | ||
Connect = "CONNECT", | ||
/** RFC 9110, 9.3.7 */ | ||
Options = "OPTIONS", | ||
/** RFC 9110, 9.3.8 */ | ||
Trace = "TRACE", | ||
/** RFC 5789 */ | ||
Patch = "PATCH", | ||
} | ||
|
||
/** HTTP request method. */ | ||
export type HttpMethod = Uppercase<keyof typeof Method>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters