@augment-vir/core 31.7.2 → 31.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* All standardized HTTP methods.
|
|
3
|
+
*
|
|
4
|
+
* @category HTTP
|
|
5
|
+
* @category Package : @augment-vir/common
|
|
6
|
+
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
7
|
+
* @see https://developer.mozilla.org/docs/Web/HTTP/Methods
|
|
8
|
+
*/
|
|
9
|
+
export declare enum HttpMethod {
|
|
10
|
+
Get = "GET",
|
|
11
|
+
Head = "HEAD",
|
|
12
|
+
Options = "OPTIONS",
|
|
13
|
+
Trace = "TRACE",
|
|
14
|
+
Put = "PUT",
|
|
15
|
+
Delete = "DELETE",
|
|
16
|
+
Post = "POST",
|
|
17
|
+
Patch = "PATCH",
|
|
18
|
+
Connect = "CONNECT"
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* All standardized HTTP methods.
|
|
3
|
+
*
|
|
4
|
+
* @category HTTP
|
|
5
|
+
* @category Package : @augment-vir/common
|
|
6
|
+
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
7
|
+
* @see https://developer.mozilla.org/docs/Web/HTTP/Methods
|
|
8
|
+
*/
|
|
9
|
+
export var HttpMethod;
|
|
10
|
+
(function (HttpMethod) {
|
|
11
|
+
HttpMethod["Get"] = "GET";
|
|
12
|
+
HttpMethod["Head"] = "HEAD";
|
|
13
|
+
HttpMethod["Options"] = "OPTIONS";
|
|
14
|
+
HttpMethod["Trace"] = "TRACE";
|
|
15
|
+
HttpMethod["Put"] = "PUT";
|
|
16
|
+
HttpMethod["Delete"] = "DELETE";
|
|
17
|
+
HttpMethod["Post"] = "POST";
|
|
18
|
+
HttpMethod["Patch"] = "PATCH";
|
|
19
|
+
HttpMethod["Connect"] = "CONNECT";
|
|
20
|
+
})(HttpMethod || (HttpMethod = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './augments/error/ensure-error.js';
|
|
|
6
6
|
export * from './augments/error/error-message.js';
|
|
7
7
|
export * from './augments/function/generic-function-type.js';
|
|
8
8
|
export * from './augments/function/typed-function-type.js';
|
|
9
|
+
export * from './augments/http/http-method.js';
|
|
9
10
|
export * from './augments/http/http-status.js';
|
|
10
11
|
export * from './augments/json/json-compatible.js';
|
|
11
12
|
export * from './augments/min-max.js';
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from './augments/error/ensure-error.js';
|
|
|
6
6
|
export * from './augments/error/error-message.js';
|
|
7
7
|
export * from './augments/function/generic-function-type.js';
|
|
8
8
|
export * from './augments/function/typed-function-type.js';
|
|
9
|
+
export * from './augments/http/http-method.js';
|
|
9
10
|
export * from './augments/http/http-status.js';
|
|
10
11
|
export * from './augments/json/json-compatible.js';
|
|
11
12
|
export * from './augments/min-max.js';
|