1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const Server_1 = require("../Server");
|
4 | const Response_1 = require("./Response");
|
5 | class InformationalResponse extends Response_1.Response {
|
6 | static create(statusCode, meta) {
|
7 | return new this({ statusCode, meta });
|
8 | }
|
9 | static continue(meta) {
|
10 | return this.create(Server_1.HttpStatusCodes.Continue, meta);
|
11 | }
|
12 | static switchingProtocols(meta) {
|
13 | return this.create(Server_1.HttpStatusCodes.SwitchingProtocols, meta);
|
14 | }
|
15 | static processing(meta) {
|
16 | return this.create(Server_1.HttpStatusCodes.Processing, meta);
|
17 | }
|
18 | }
|
19 | exports.InformationalResponse = InformationalResponse;
|
20 |
|
\ | No newline at end of file |