aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/http
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/http')
-rw-r--r--shared/models/http/http-error-codes.ts2
-rw-r--r--shared/models/http/http-methods.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared/models/http/http-error-codes.ts b/shared/models/http/http-error-codes.ts
index b2fbdfc5a..5ebff1cb5 100644
--- a/shared/models/http/http-error-codes.ts
+++ b/shared/models/http/http-error-codes.ts
@@ -4,7 +4,7 @@
4 * 4 *
5 * WebDAV and other codes useless with regards to PeerTube are not listed. 5 * WebDAV and other codes useless with regards to PeerTube are not listed.
6 */ 6 */
7export enum HttpStatusCode { 7export const enum HttpStatusCode {
8 8
9 /** 9 /**
10 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.1 10 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.1
diff --git a/shared/models/http/http-methods.ts b/shared/models/http/http-methods.ts
index 1cfa458b9..3f4adafe2 100644
--- a/shared/models/http/http-methods.ts
+++ b/shared/models/http/http-methods.ts
@@ -1,5 +1,5 @@
1/** HTTP request method to indicate the desired action to be performed for a given resource. */ 1/** HTTP request method to indicate the desired action to be performed for a given resource. */
2export enum HttpMethod { 2export const enum HttpMethod {
3 /** The CONNECT method establishes a tunnel to the server identified by the target resource. */ 3 /** The CONNECT method establishes a tunnel to the server identified by the target resource. */
4 CONNECT = 'CONNECT', 4 CONNECT = 'CONNECT',
5 /** The DELETE method deletes the specified resource. */ 5 /** The DELETE method deletes the specified resource. */