Skip to content

TODO No more @AfterResponse type middlewares #8

@snytkine

Description

@snytkine

There will be only Middleware and AfterWare - after controller. We cannot do anything after response is sent because in AWS Lambda there will not be a 'sending' of response, we just return a Promise and that is all.

If developer needs to do something after response is written to Node.js response object they can create own ResponseWriter component that listens for Response .onEnd method and does something from onEnd

Another possibility is to create component @OnResponseEnd and wire that component to run from Response onEnd from our own ResponseWriter. It must be understood that this component will be ignored when run as Lambda because ResponseWriter will not be used from Lambda.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions