1 | // Copyright (c) Microsoft Corporation. All rights reserved.
|
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
|
3 | export var Constants = {
|
4 | /**
|
5 | * The ms-rest version
|
6 | * @const
|
7 | * @type {string}
|
8 | */
|
9 | msRestVersion: "2.6.4",
|
10 | /**
|
11 | * Specifies HTTP.
|
12 | *
|
13 | * @const
|
14 | * @type {string}
|
15 | */
|
16 | HTTP: "http:",
|
17 | /**
|
18 | * Specifies HTTPS.
|
19 | *
|
20 | * @const
|
21 | * @type {string}
|
22 | */
|
23 | HTTPS: "https:",
|
24 | /**
|
25 | * Specifies HTTP Proxy.
|
26 | *
|
27 | * @const
|
28 | * @type {string}
|
29 | */
|
30 | HTTP_PROXY: "HTTP_PROXY",
|
31 | /**
|
32 | * Specifies HTTPS Proxy.
|
33 | *
|
34 | * @const
|
35 | * @type {string}
|
36 | */
|
37 | HTTPS_PROXY: "HTTPS_PROXY",
|
38 | /**
|
39 | * Specifies NO Proxy.
|
40 | */
|
41 | NO_PROXY: "NO_PROXY",
|
42 | /**
|
43 | * Specifies ALL Proxy.
|
44 | */
|
45 | ALL_PROXY: "ALL_PROXY",
|
46 | HttpConstants: {
|
47 | /**
|
48 | * Http Verbs
|
49 | *
|
50 | * @const
|
51 | * @enum {string}
|
52 | */
|
53 | HttpVerbs: {
|
54 | PUT: "PUT",
|
55 | GET: "GET",
|
56 | DELETE: "DELETE",
|
57 | POST: "POST",
|
58 | MERGE: "MERGE",
|
59 | HEAD: "HEAD",
|
60 | PATCH: "PATCH",
|
61 | },
|
62 | StatusCodes: {
|
63 | TooManyRequests: 429,
|
64 | },
|
65 | },
|
66 | /**
|
67 | * Defines constants for use with HTTP headers.
|
68 | */
|
69 | HeaderConstants: {
|
70 | /**
|
71 | * The Authorization header.
|
72 | *
|
73 | * @const
|
74 | * @type {string}
|
75 | */
|
76 | AUTHORIZATION: "authorization",
|
77 | AUTHORIZATION_SCHEME: "Bearer",
|
78 | /**
|
79 | * The Retry-After response-header field can be used with a 503 (Service
|
80 | * Unavailable) or 349 (Too Many Requests) responses to indicate how long
|
81 | * the service is expected to be unavailable to the requesting client.
|
82 | *
|
83 | * @const
|
84 | * @type {string}
|
85 | */
|
86 | RETRY_AFTER: "Retry-After",
|
87 | /**
|
88 | * The UserAgent header.
|
89 | *
|
90 | * @const
|
91 | * @type {string}
|
92 | */
|
93 | USER_AGENT: "User-Agent",
|
94 | },
|
95 | };
|
96 | //# sourceMappingURL=constants.js.map |
\ | No newline at end of file |