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.
MIT License
7k stars 680 forks source link

Custom IncomingMessage #926

Closed AlexLanes closed 1 year ago

AlexLanes commented 1 year ago

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

GrosSacASac commented 1 year ago

busboy !== formidable