node-formidable / formidable

The most used, flexible, fast and streaming parser for multipart form data. Supports uploading to serverless environments, AWS S3, Azure, GCP or the filesystem. Used in production.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom IncomingMessage

AlexLanes opened this issue · comments

A server with custom IncomingMessage does not work. All requests are aborted.

createServer({
    IncomingMessage: Request,
    ServerResponse: Response
})
export class Request extends IncomingMessage {
    constructor(){
        super()
        this.body = {}
        this.parâmetros = {
            método: "",
            caminho: "",
            operação: "",
            headers: {},
            querys: {},
            variáveis: {},
            arquivos: []
        }
    }
}

is there a way to add support for this ?
Edit: I found that busboy read fields but never emit a "close" event

busboy !== formidable