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