Skip to content

response listener is not called when IncomingMessage is read by readable.on('readable')/readable.read() approach #1

@chaoyangnz

Description

@chaoyangnz

Typically we read a response incomingmessage with on data, end event, but some libraries read the data with

on('readable', () => {
   while(response.read()) {
       //...
   }
})

or

pipe(..)

which is especially true when in stream mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions