add dynamic

This commit is contained in:
CoolElectronics 2023-08-13 15:04:53 -04:00
parent ebe1f18b68
commit f5e0c4202e
No known key found for this signature in database
GPG key ID: F63593D168636C50
20 changed files with 1782 additions and 252 deletions

View file

@ -122,6 +122,7 @@ export class Client {
}
sendHTTPResponseChunk(seq: number, chunk: Buffer) {
if (!chunk.copy) return;
const buf = Buffer.alloc(2 + 1 + chunk.length);
let cursor = 0;
cursor = buf.writeUInt16BE(seq, cursor);