This repository has been archived on 2025-03-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
layc/lib/IO/LayRequest.js
2023-12-25 01:52:41 +00:00

22 lines
347 B
JavaScript

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);
}
}