Skip to content

Request constructor doesn't work with plain Node IncomingMessage #357

Open
@p-bakker

Description

@p-bakker

It seems the Request constructor expects to get passed in a enhanced version of the Node's IncomingRequest class, for example one from Express of Koa.

The problem lies in the fact that the plain IncomingMessage object doesn't have a query property, which the Request constructor bombs out on.

I'd say the Request constructor should work with plain IncominMessage instances and perform the enhancement/upgrade itself if not already done

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions