Skip to content

Support setHeader for more compatibility with Express middleware #130

@AndrewBarba

Description

@AndrewBarba

Currently we can set headers using res.header(key, value) however a lot of Express middleware, ex. Helmet, use res.setHeader(key, value).

Adding a setHeader alias would allow these types of middleware to work out of the box.

I currently add res.setHeader = (...args) => res.header(...args) to all of my projects that use lambda-api in order to support this

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions