1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.AbstractHttpAdapter = void 0;
|
4 |
|
5 |
|
6 |
|
7 | class AbstractHttpAdapter {
|
8 | constructor(instance) {
|
9 | this.instance = instance;
|
10 | }
|
11 |
|
12 | async init() { }
|
13 | use(...args) {
|
14 | return this.instance.use(...args);
|
15 | }
|
16 | get(...args) {
|
17 | return this.instance.get(...args);
|
18 | }
|
19 | post(...args) {
|
20 | return this.instance.post(...args);
|
21 | }
|
22 | head(...args) {
|
23 | return this.instance.head(...args);
|
24 | }
|
25 | delete(...args) {
|
26 | return this.instance.delete(...args);
|
27 | }
|
28 | put(...args) {
|
29 | return this.instance.put(...args);
|
30 | }
|
31 | patch(...args) {
|
32 | return this.instance.patch(...args);
|
33 | }
|
34 | all(...args) {
|
35 | return this.instance.all(...args);
|
36 | }
|
37 | options(...args) {
|
38 | return this.instance.options(...args);
|
39 | }
|
40 | listen(port, hostname, callback) {
|
41 | return this.instance.listen(port, hostname, callback);
|
42 | }
|
43 | getHttpServer() {
|
44 | return this.httpServer;
|
45 | }
|
46 | setHttpServer(httpServer) {
|
47 | this.httpServer = httpServer;
|
48 | }
|
49 | setInstance(instance) {
|
50 | this.instance = instance;
|
51 | }
|
52 | getInstance() {
|
53 | return this.instance;
|
54 | }
|
55 | }
|
56 | exports.AbstractHttpAdapter = AbstractHttpAdapter;
|