@adonisjs/http-server 5.11.0 → 6.0.0-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.
Files changed (169) hide show
  1. package/README.md +15 -38
  2. package/build/index.d.ts +16 -0
  3. package/build/index.js +16 -0
  4. package/build/src/cookies/client.d.ts +12 -0
  5. package/build/src/cookies/client.js +42 -0
  6. package/build/src/cookies/drivers/encrypted.d.ts +4 -0
  7. package/build/src/cookies/drivers/encrypted.js +16 -0
  8. package/build/src/cookies/drivers/plain.d.ts +3 -0
  9. package/build/src/cookies/drivers/plain.js +13 -0
  10. package/build/src/cookies/drivers/signed.d.ts +4 -0
  11. package/build/src/cookies/drivers/signed.js +16 -0
  12. package/build/src/cookies/parser.d.ts +9 -0
  13. package/build/src/cookies/parser.js +69 -0
  14. package/build/src/cookies/serializer.d.ts +11 -0
  15. package/build/src/cookies/serializer.js +39 -0
  16. package/build/src/debug.d.ts +3 -0
  17. package/build/src/debug.js +2 -0
  18. package/build/src/define_config.d.ts +2 -0
  19. package/build/src/define_config.js +40 -0
  20. package/build/src/define_middleware.d.ts +4 -0
  21. package/build/src/define_middleware.js +6 -0
  22. package/build/src/exceptions/abort_exception.d.ts +5 -0
  23. package/build/src/exceptions/abort_exception.js +6 -0
  24. package/build/src/exceptions/cannot_lookup_route.d.ts +5 -0
  25. package/build/src/exceptions/cannot_lookup_route.js +5 -0
  26. package/build/src/exceptions/http_exception.d.ts +6 -0
  27. package/build/src/exceptions/http_exception.js +20 -0
  28. package/build/src/exceptions/route_not_found.d.ts +5 -0
  29. package/build/src/exceptions/route_not_found.js +5 -0
  30. package/build/src/helpers.d.ts +6 -67
  31. package/build/src/helpers.js +13 -168
  32. package/build/src/http_context/local_storage.d.ts +9 -0
  33. package/build/src/http_context/local_storage.js +14 -0
  34. package/build/src/http_context/main.d.ts +20 -0
  35. package/build/src/http_context/main.js +49 -0
  36. package/build/src/middleware/store.d.ts +11 -0
  37. package/build/src/middleware/store.js +33 -0
  38. package/build/src/qs.d.ts +7 -0
  39. package/build/src/qs.js +13 -0
  40. package/build/src/redirect.d.ts +18 -0
  41. package/build/src/redirect.js +80 -0
  42. package/build/src/request.d.ts +81 -0
  43. package/build/src/request.js +315 -0
  44. package/build/src/response.d.ts +108 -0
  45. package/build/src/response.js +587 -0
  46. package/build/src/router/brisk.d.ts +18 -0
  47. package/build/src/router/brisk.js +35 -0
  48. package/build/src/router/executor.d.ts +4 -0
  49. package/build/src/router/executor.js +16 -0
  50. package/build/src/router/group.d.ts +19 -0
  51. package/build/src/router/group.js +117 -0
  52. package/build/src/router/lookup_store/main.d.ts +17 -0
  53. package/build/src/router/lookup_store/main.js +37 -0
  54. package/build/src/router/lookup_store/route_finder.d.ts +8 -0
  55. package/build/src/router/lookup_store/route_finder.js +28 -0
  56. package/build/src/router/lookup_store/url_builder.d.ts +16 -0
  57. package/build/src/router/lookup_store/url_builder.js +111 -0
  58. package/build/src/router/main.d.ts +36 -0
  59. package/build/src/router/main.js +161 -0
  60. package/build/src/router/matchers.d.ts +14 -0
  61. package/build/src/router/matchers.js +15 -0
  62. package/build/src/router/resource.d.ts +27 -0
  63. package/build/src/router/resource.js +124 -0
  64. package/build/src/router/route.d.ts +28 -0
  65. package/build/src/router/route.js +135 -0
  66. package/build/src/router/store.d.ts +12 -0
  67. package/build/src/router/store.js +87 -0
  68. package/build/src/server/factories/final_handler.d.ts +4 -0
  69. package/build/src/server/factories/final_handler.js +17 -0
  70. package/build/src/server/factories/middleware_handler.d.ts +5 -0
  71. package/build/src/server/factories/middleware_handler.js +5 -0
  72. package/build/src/server/factories/use_return_value.d.ts +2 -0
  73. package/build/src/server/factories/use_return_value.js +9 -0
  74. package/build/src/server/factories/write_response.d.ts +2 -0
  75. package/build/src/server/factories/write_response.js +12 -0
  76. package/build/src/server/main.d.ts +23 -0
  77. package/build/src/server/main.js +124 -0
  78. package/build/src/types/base.d.ts +5 -0
  79. package/build/src/types/base.js +1 -0
  80. package/build/src/types/middleware.d.ts +14 -0
  81. package/build/src/types/middleware.js +1 -0
  82. package/build/src/types/qs.d.ts +15 -0
  83. package/build/src/types/qs.js +1 -0
  84. package/build/src/types/request.d.ts +7 -0
  85. package/build/src/types/request.js +1 -0
  86. package/build/src/types/response.d.ts +18 -0
  87. package/build/src/types/response.js +1 -0
  88. package/build/src/types/route.d.ts +74 -0
  89. package/build/src/types/route.js +1 -0
  90. package/build/src/types/server.d.ts +13 -0
  91. package/build/src/types/server.js +1 -0
  92. package/package.json +98 -96
  93. package/build/adonis-typings/container.d.ts +0 -24
  94. package/build/adonis-typings/container.js +0 -8
  95. package/build/adonis-typings/context.d.ts +0 -73
  96. package/build/adonis-typings/context.js +0 -8
  97. package/build/adonis-typings/cookie-client.d.ts +0 -34
  98. package/build/adonis-typings/cookie-client.js +0 -8
  99. package/build/adonis-typings/http-server.d.ts +0 -98
  100. package/build/adonis-typings/http-server.js +0 -8
  101. package/build/adonis-typings/index.d.ts +0 -16
  102. package/build/adonis-typings/index.js +0 -16
  103. package/build/adonis-typings/middleware.d.ts +0 -95
  104. package/build/adonis-typings/middleware.js +0 -8
  105. package/build/adonis-typings/request.d.ts +0 -556
  106. package/build/adonis-typings/request.js +0 -8
  107. package/build/adonis-typings/response.d.ts +0 -438
  108. package/build/adonis-typings/response.js +0 -8
  109. package/build/adonis-typings/route.d.ts +0 -559
  110. package/build/adonis-typings/route.js +0 -8
  111. package/build/exceptions.json +0 -110
  112. package/build/providers/HttpServerProvider.d.ts +0 -46
  113. package/build/providers/HttpServerProvider.js +0 -100
  114. package/build/src/Cookie/Client/index.d.ts +0 -39
  115. package/build/src/Cookie/Client/index.js +0 -108
  116. package/build/src/Cookie/Drivers/Encrypted.d.ts +0 -24
  117. package/build/src/Cookie/Drivers/Encrypted.js +0 -42
  118. package/build/src/Cookie/Drivers/Plain.d.ts +0 -23
  119. package/build/src/Cookie/Drivers/Plain.js +0 -40
  120. package/build/src/Cookie/Drivers/Signed.d.ts +0 -24
  121. package/build/src/Cookie/Drivers/Signed.js +0 -42
  122. package/build/src/Cookie/Parser/index.d.ts +0 -61
  123. package/build/src/Cookie/Parser/index.js +0 -174
  124. package/build/src/Cookie/Serializer/index.d.ts +0 -44
  125. package/build/src/Cookie/Serializer/index.js +0 -88
  126. package/build/src/Exceptions/HttpException.d.ts +0 -20
  127. package/build/src/Exceptions/HttpException.js +0 -36
  128. package/build/src/Exceptions/RouterException.d.ts +0 -36
  129. package/build/src/Exceptions/RouterException.js +0 -76
  130. package/build/src/HttpContext/LocalStorage/index.d.ts +0 -24
  131. package/build/src/HttpContext/LocalStorage/index.js +0 -28
  132. package/build/src/HttpContext/index.d.ts +0 -90
  133. package/build/src/HttpContext/index.js +0 -181
  134. package/build/src/MiddlewareStore/index.d.ts +0 -92
  135. package/build/src/MiddlewareStore/index.js +0 -133
  136. package/build/src/Redirect/index.d.ts +0 -71
  137. package/build/src/Redirect/index.js +0 -139
  138. package/build/src/Request/index.d.ts +0 -619
  139. package/build/src/Request/index.js +0 -862
  140. package/build/src/Response/index.d.ts +0 -412
  141. package/build/src/Response/index.js +0 -1010
  142. package/build/src/Router/BriskRoute.d.ts +0 -53
  143. package/build/src/Router/BriskRoute.js +0 -74
  144. package/build/src/Router/Group.d.ts +0 -101
  145. package/build/src/Router/Group.js +0 -165
  146. package/build/src/Router/LookupStore.d.ts +0 -122
  147. package/build/src/Router/LookupStore.js +0 -264
  148. package/build/src/Router/Matchers.d.ts +0 -31
  149. package/build/src/Router/Matchers.js +0 -43
  150. package/build/src/Router/Resource.d.ts +0 -95
  151. package/build/src/Router/Resource.js +0 -182
  152. package/build/src/Router/Route.d.ts +0 -138
  153. package/build/src/Router/Route.js +0 -204
  154. package/build/src/Router/Store.d.ts +0 -93
  155. package/build/src/Router/Store.js +0 -211
  156. package/build/src/Router/index.d.ts +0 -142
  157. package/build/src/Router/index.js +0 -333
  158. package/build/src/Server/ExceptionManager/index.d.ts +0 -49
  159. package/build/src/Server/ExceptionManager/index.js +0 -96
  160. package/build/src/Server/Hooks/index.d.ts +0 -43
  161. package/build/src/Server/Hooks/index.js +0 -77
  162. package/build/src/Server/PreCompiler/index.d.ts +0 -60
  163. package/build/src/Server/PreCompiler/index.js +0 -141
  164. package/build/src/Server/RequestHandler/index.d.ts +0 -39
  165. package/build/src/Server/RequestHandler/index.js +0 -87
  166. package/build/src/Server/index.d.ts +0 -90
  167. package/build/src/Server/index.js +0 -175
  168. package/build/standalone.d.ts +0 -14
  169. package/build/standalone.js +0 -23
@@ -1,412 +0,0 @@
1
- /**
2
- * @adonisjs/http-server
3
- *
4
- * (c) Harminder Virk <virk@adonisjs.com>
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
- /// <reference path="../../adonis-typings/index.d.ts" />
10
- /// <reference types="node" />
11
- /// <reference types="node" />
12
- import { Macroable } from 'macroable';
13
- import { ServerResponse, IncomingMessage } from 'http';
14
- import { CookieOptions, CastableHeader, ResponseConfig, ResponseStream, ResponseContract, RedirectContract } from '@ioc:Adonis/Core/Response';
15
- import { RouterContract } from '@ioc:Adonis/Core/Route';
16
- import { EncryptionContract } from '@ioc:Adonis/Core/Encryption';
17
- import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext';
18
- /**
19
- * The response is a wrapper over [ServerResponse](https://nodejs.org/api/http.html#http_class_http_serverresponse)
20
- * streamlining the process of writing response body and automatically setting up appropriate headers.
21
- */
22
- export declare class Response extends Macroable implements ResponseContract {
23
- request: IncomingMessage;
24
- response: ServerResponse;
25
- private encryption;
26
- private config;
27
- private router;
28
- protected static macros: {};
29
- protected static getters: {};
30
- private headers;
31
- private explicitStatus;
32
- private writerMethod;
33
- /**
34
- * Cookies serializer
35
- */
36
- private cookieSerializer;
37
- /**
38
- * Returns a boolean telling if lazy body is already set or not
39
- */
40
- hasLazyBody: boolean;
41
- /**
42
- * Returns true when response body is set using "response.download"
43
- * and "response.attachment" methods
44
- */
45
- get isStreamResponse(): boolean;
46
- /**
47
- * Lazy body is used to set the response body. However, do not
48
- * write it on the socket immediately unless `response.finish`
49
- * is called.
50
- */
51
- lazyBody: any[];
52
- /**
53
- * The ctx will be set by the context itself. It creates a circular
54
- * reference
55
- */
56
- ctx?: HttpContextContract;
57
- constructor(request: IncomingMessage, response: ServerResponse, encryption: EncryptionContract, config: ResponseConfig, router: RouterContract);
58
- /**
59
- * Returns a boolean telling if response is finished or not.
60
- * Any more attempts to update headers or body will result
61
- * in raised exceptions.
62
- */
63
- get finished(): boolean;
64
- /**
65
- * Returns a boolean telling if response headers has been sent or not.
66
- * Any more attempts to update headers will result in raised
67
- * exceptions.
68
- */
69
- get headersSent(): boolean;
70
- /**
71
- * Returns a boolean telling if response headers and body is written
72
- * or not. When value is `true`, you can feel free to write headers
73
- * and body.
74
- */
75
- get isPending(): boolean;
76
- /**
77
- * Normalizes header value to a string or an array of string
78
- */
79
- private castHeaderValue;
80
- /**
81
- * Ends the response by flushing headers and writing body
82
- */
83
- private endResponse;
84
- /**
85
- * Returns type for the content body. Only following types are allowed
86
- *
87
- * - Dates
88
- * - Arrays
89
- * - Booleans
90
- * - Objects
91
- * - Strings
92
- * - Buffer
93
- */
94
- private getDataType;
95
- /**
96
- * Writes the body with appropriate response headers. Etag header is set
97
- * when `generateEtag` is set to `true`.
98
- *
99
- * Empty body results in `204`.
100
- */
101
- protected writeBody(content: any, generateEtag: boolean, jsonpCallbackName?: string): void;
102
- /**
103
- * Stream the body to the response and handles cleaning up the stream
104
- */
105
- protected streamBody(body: ResponseStream, errorCallback?: (error: NodeJS.ErrnoException) => [string, number?]): Promise<void>;
106
- /**
107
- * Downloads a file by streaming it to the response
108
- */
109
- protected streamFileForDownload(filePath: string, generateEtag: boolean, errorCallback?: (error: NodeJS.ErrnoException) => [string, number?]): Promise<void>;
110
- /**
111
- * Writes headers to the response.
112
- */
113
- flushHeaders(statusCode?: number): this;
114
- /**
115
- * Returns the existing value for a given HTTP response
116
- * header.
117
- */
118
- getHeader(key: string): any;
119
- /**
120
- * Get response headers
121
- */
122
- getHeaders(): {
123
- [key: string]: string | string[] | number;
124
- };
125
- /**
126
- * Set header on the response. To `append` values to the existing header, we suggest
127
- * using [[append]] method.
128
- *
129
- * If `value` is non existy, then header won't be set.
130
- *
131
- * @example
132
- * ```js
133
- * response.header('content-type', 'application/json')
134
- * ```
135
- */
136
- header(key: string, value: CastableHeader): this;
137
- /**
138
- * Append value to an existing header. To replace the value, we suggest using
139
- * [[header]] method.
140
- *
141
- * If `value` is not existy, then header won't be set.
142
- *
143
- * @example
144
- * ```js
145
- * response.append('set-cookie', 'username=virk')
146
- * ```
147
- */
148
- append(key: string, value: CastableHeader): this;
149
- /**
150
- * Adds HTTP response header, when it doesn't exists already.
151
- */
152
- safeHeader(key: string, value: CastableHeader): this;
153
- /**
154
- * Removes the existing response header from being sent.
155
- */
156
- removeHeader(key: string): this;
157
- /**
158
- * Returns the status code for the response
159
- */
160
- getStatus(): number;
161
- /**
162
- * Set HTTP status code
163
- */
164
- status(code: number): this;
165
- /**
166
- * Set's status code only when it's not explictly
167
- * set
168
- */
169
- safeStatus(code: number): this;
170
- /**
171
- * Set response type by looking up for the mime-type using
172
- * partial types like file extensions.
173
- *
174
- * Make sure to read [mime-types](https://www.npmjs.com/package/mime-types) docs
175
- * too.
176
- *
177
- * @example
178
- * ```js
179
- * response.type('.json') // Content-type: application/json
180
- * ```
181
- */
182
- type(type: string, charset?: string): this;
183
- /**
184
- * Set the Vary HTTP header
185
- */
186
- vary(field: string | string[]): this;
187
- /**
188
- * Set etag by computing hash from the body. This class will set the etag automatically
189
- * when `etag = true` in the defined config object.
190
- *
191
- * Use this function, when you want to compute etag manually for some other resons.
192
- */
193
- setEtag(body: any, weak?: boolean): this;
194
- /**
195
- * Returns a boolean telling if the new response etag evaluates same
196
- * as the request header `if-none-match`. In case of `true`, the
197
- * server must return `304` response, telling the browser to
198
- * use the client cache.
199
- *
200
- * You won't have to deal with this method directly, since AdonisJs will
201
- * handle this for you when `http.etag = true` inside `config/app.js` file.
202
- *
203
- * However, this is how you can use it manually.
204
- *
205
- * @example
206
- * ```js
207
- * const responseBody = view.render('some-view')
208
- *
209
- * // sets the HTTP etag header for response
210
- * response.setEtag(responseBody)
211
- *
212
- * if (response.fresh()) {
213
- * response.sendStatus(304)
214
- * } else {
215
- * response.send(responseBody)
216
- * }
217
- * ```
218
- */
219
- fresh(): boolean;
220
- /**
221
- * Returns the response body. Returns null when response
222
- * body is a stream
223
- */
224
- getBody(): any;
225
- /**
226
- * Send the body as response and optionally generate etag. The default value
227
- * is read from `config/app.js` file, using `http.etag` property.
228
- *
229
- * This method buffers the body if `explicitEnd = true`, which is the default
230
- * behavior and do not change, unless you know what you are doing.
231
- */
232
- send(body: any, generateEtag?: boolean): void;
233
- /**
234
- * Alias of [[send]]
235
- */
236
- json(body: any, generateEtag?: boolean): void;
237
- /**
238
- * Writes response as JSONP. The callback name is resolved as follows, with priority
239
- * from top to bottom.
240
- *
241
- * 1. Explicitly defined as 2nd Param.
242
- * 2. Fetch from request query string.
243
- * 3. Use the config value `http.jsonpCallbackName` from `config/app.js`.
244
- * 4. Fallback to `callback`.
245
- *
246
- * This method buffers the body if `explicitEnd = true`, which is the default
247
- * behavior and do not change, unless you know what you are doing.
248
- */
249
- jsonp(body: any, callbackName?: string, generateEtag?: boolean): void;
250
- /**
251
- * Pipe stream to the response. This method will gracefully destroy
252
- * the stream, avoiding memory leaks.
253
- *
254
- * If `raiseErrors=false`, then this method will self handle all the exceptions by
255
- * writing a generic HTTP response. To have more control over the error, it is
256
- * recommended to set `raiseErrors=true` and wrap this function inside a
257
- * `try/catch` statement.
258
- *
259
- * Streaming a file from the disk and showing 404 when file is missing.
260
- *
261
- * @example
262
- * ```js
263
- * // Errors handled automatically with generic HTTP response
264
- * response.stream(fs.createReadStream('file.txt'))
265
- *
266
- * // Manually handle (note the await call)
267
- * try {
268
- * await response.stream(fs.createReadStream('file.txt'))
269
- * } catch () {
270
- * response.status(404).send('File not found')
271
- * }
272
- * ```
273
- */
274
- stream(body: ResponseStream, errorCallback?: (error: NodeJS.ErrnoException) => [string, number?]): void;
275
- /**
276
- * Download file by streaming it from the file path. This method will setup
277
- * appropriate `Content-type`, `Content-type` and `Last-modified` headers.
278
- *
279
- * Unexpected stream errors are handled gracefully to avoid memory leaks.
280
- *
281
- * If `raiseErrors=false`, then this method will self handle all the exceptions by
282
- * writing a generic HTTP response. To have more control over the error, it is
283
- * recommended to set `raiseErrors=true` and wrap this function inside a
284
- * `try/catch` statement.
285
- *
286
- * @example
287
- * ```js
288
- * // Errors handled automatically with generic HTTP response
289
- * response.download('somefile.jpg')
290
- *
291
- * // Manually handle (note the await call)
292
- * try {
293
- * await response.download('somefile.jpg')
294
- * } catch (error) {
295
- * response.status(error.code === 'ENOENT' ? 404 : 500)
296
- * response.send('Cannot process file')
297
- * }
298
- * ```
299
- */
300
- download(filePath: string, generateEtag?: boolean, errorCallback?: (error: NodeJS.ErrnoException) => [string, number?]): void;
301
- /**
302
- * Download the file by forcing the user to save the file vs displaying it
303
- * within the browser.
304
- *
305
- * Internally calls [[download]]
306
- */
307
- attachment(filePath: string, name?: string, disposition?: string, generateEtag?: boolean, errorCallback?: (error: NodeJS.ErrnoException) => [string, number?]): void;
308
- /**
309
- * Set the location header.
310
- *
311
- * @example
312
- * ```js
313
- * response.location('/login')
314
- * ```
315
- */
316
- location(url: string): this;
317
- /**
318
- * Redirect the request.
319
- *
320
- * @example
321
- * ```js
322
- * response.redirect('/foo')
323
- * response.redirect().toRoute('foo.bar')
324
- * response.redirect().back()
325
- * ```
326
- */
327
- redirect(): RedirectContract;
328
- redirect(path: string, forwardQueryString?: boolean, statusCode?: number): void;
329
- /**
330
- * Abort the request with custom body and a status code. 400 is
331
- * used when status is not defined
332
- */
333
- abort(body: any, status?: number): never;
334
- /**
335
- * Abort the request with custom body and a status code when
336
- * passed condition returns `true`
337
- */
338
- abortIf(condition: any, body: any, status?: number): void;
339
- /**
340
- * Abort the request with custom body and a status code when
341
- * passed condition returns `false`
342
- */
343
- abortUnless(condition: any, body: any, status?: number): void;
344
- /**
345
- * Set signed cookie as the response header. The inline options overrides
346
- * all options from the config (means they are not merged).
347
- */
348
- cookie(key: string, value: any, options?: Partial<CookieOptions>): this;
349
- /**
350
- * Set unsigned cookie as the response header. The inline options overrides
351
- * all options from the config (means they are not merged)
352
- */
353
- plainCookie(key: string, value: any, options?: Partial<CookieOptions>): this;
354
- /**
355
- * Set unsigned cookie as the response header. The inline options overrides
356
- * all options from the config (means they are not merged)
357
- */
358
- encryptedCookie(key: string, value: any, options?: Partial<CookieOptions>): this;
359
- /**
360
- * Clear existing cookie.
361
- */
362
- clearCookie(key: string, options?: Partial<CookieOptions>): this;
363
- /**
364
- * Finishes the response by writing the lazy body, when `explicitEnd = true`
365
- * and response is already pending.
366
- *
367
- * Calling this method twice or when `explicitEnd = false` is noop.
368
- */
369
- finish(): void;
370
- continue(): void;
371
- switchingProtocols(): void;
372
- ok(body: any, generateEtag?: boolean): void;
373
- created(body?: any, generateEtag?: boolean): void;
374
- accepted(body: any, generateEtag?: boolean): void;
375
- nonAuthoritativeInformation(body: any, generateEtag?: boolean): void;
376
- noContent(): void;
377
- resetContent(): void;
378
- partialContent(body: any, generateEtag?: boolean): void;
379
- multipleChoices(body?: any, generateEtag?: boolean): void;
380
- movedPermanently(body?: any, generateEtag?: boolean): void;
381
- movedTemporarily(body?: any, generateEtag?: boolean): void;
382
- seeOther(body?: any, generateEtag?: boolean): void;
383
- notModified(body?: any, generateEtag?: boolean): void;
384
- useProxy(body?: any, generateEtag?: boolean): void;
385
- temporaryRedirect(body?: any, generateEtag?: boolean): void;
386
- badRequest(body?: any, generateEtag?: boolean): void;
387
- unauthorized(body?: any, generateEtag?: boolean): void;
388
- paymentRequired(body?: any, generateEtag?: boolean): void;
389
- forbidden(body?: any, generateEtag?: boolean): void;
390
- notFound(body?: any, generateEtag?: boolean): void;
391
- methodNotAllowed(body?: any, generateEtag?: boolean): void;
392
- notAcceptable(body?: any, generateEtag?: boolean): void;
393
- proxyAuthenticationRequired(body?: any, generateEtag?: boolean): void;
394
- requestTimeout(body?: any, generateEtag?: boolean): void;
395
- conflict(body?: any, generateEtag?: boolean): void;
396
- gone(body?: any, generateEtag?: boolean): void;
397
- lengthRequired(body?: any, generateEtag?: boolean): void;
398
- preconditionFailed(body?: any, generateEtag?: boolean): void;
399
- requestEntityTooLarge(body?: any, generateEtag?: boolean): void;
400
- requestUriTooLong(body?: any, generateEtag?: boolean): void;
401
- unsupportedMediaType(body?: any, generateEtag?: boolean): void;
402
- requestedRangeNotSatisfiable(body?: any, generateEtag?: boolean): void;
403
- expectationFailed(body?: any, generateEtag?: boolean): void;
404
- unprocessableEntity(body?: any, generateEtag?: boolean): void;
405
- tooManyRequests(body?: any, generateEtag?: boolean): void;
406
- internalServerError(body?: any, generateEtag?: boolean): void;
407
- notImplemented(body?: any, generateEtag?: boolean): void;
408
- badGateway(body?: any, generateEtag?: boolean): void;
409
- serviceUnavailable(body?: any, generateEtag?: boolean): void;
410
- gatewayTimeout(body?: any, generateEtag?: boolean): void;
411
- httpVersionNotSupported(body?: any, generateEtag?: boolean): void;
412
- }