chore(project) cleanup
This commit is contained in:
21
lib/IO/LayRequest.js
Normal file
21
lib/IO/LayRequest.js
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user