constants.d.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. export declare const Constants: {
  2. /**
  3. * The ms-rest version
  4. * @const
  5. * @type {string}
  6. */
  7. msRestVersion: string;
  8. /**
  9. * Specifies HTTP.
  10. *
  11. * @const
  12. * @type {string}
  13. */
  14. HTTP: string;
  15. /**
  16. * Specifies HTTPS.
  17. *
  18. * @const
  19. * @type {string}
  20. */
  21. HTTPS: string;
  22. /**
  23. * Specifies HTTP Proxy.
  24. *
  25. * @const
  26. * @type {string}
  27. */
  28. HTTP_PROXY: string;
  29. /**
  30. * Specifies HTTPS Proxy.
  31. *
  32. * @const
  33. * @type {string}
  34. */
  35. HTTPS_PROXY: string;
  36. HttpConstants: {
  37. /**
  38. * Http Verbs
  39. *
  40. * @const
  41. * @enum {string}
  42. */
  43. HttpVerbs: {
  44. PUT: string;
  45. GET: string;
  46. DELETE: string;
  47. POST: string;
  48. MERGE: string;
  49. HEAD: string;
  50. PATCH: string;
  51. };
  52. StatusCodes: {
  53. TooManyRequests: number;
  54. };
  55. };
  56. /**
  57. * Defines constants for use with HTTP headers.
  58. */
  59. HeaderConstants: {
  60. /**
  61. * The Authorization header.
  62. *
  63. * @const
  64. * @type {string}
  65. */
  66. AUTHORIZATION: string;
  67. AUTHORIZATION_SCHEME: string;
  68. /**
  69. * The Retry-After response-header field can be used with a 503 (Service
  70. * Unavailable) or 349 (Too Many Requests) responses to indicate how long
  71. * the service is expected to be unavailable to the requesting client.
  72. *
  73. * @const
  74. * @type {string}
  75. */
  76. RETRY_AFTER: string;
  77. /**
  78. * The UserAgent header.
  79. *
  80. * @const
  81. * @type {string}
  82. */
  83. USER_AGENT: string;
  84. };
  85. };
  86. //# sourceMappingURL=constants.d.ts.map