chore(project) cleanup

This commit is contained in:
Benjamin Wegener
2023-12-25 01:52:41 +00:00
parent 785452cdea
commit bbac46c642
18 changed files with 199 additions and 67 deletions

21
lib/IO/LayRequest.js Normal file
View File

@@ -0,0 +1,21 @@
import RequestParser from '../Utils/RequestParser';
export default class LayRequest extends Request {
body = null;
constructor(req) {
super(req);
this.params = new Map();
this.query = new Map();
this.parseBody(req);
}
header(key) {
this.headers?.get(key);
}
async parseBody(req) {
this.body = await RequestParser(req);
}
}