19 lines
251 B
JavaScript
19 lines
251 B
JavaScript
|
"use strict";
|
||
|
|
||
|
import http from 'http';
|
||
|
|
||
|
class HttpSubsystem {
|
||
|
constructor(agent) {
|
||
|
this.agent = agent;
|
||
|
}
|
||
|
|
||
|
init(port, address = `127.0.0.1`) {
|
||
|
this.http = http.createServer((req, res) => {
|
||
|
|
||
|
});
|
||
|
this.
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default HttpSubsystem;
|