Skip to content

Interceptors: Get access to the Request object from out() method #246

@fiunchinho

Description

@fiunchinho

Hey!
I'd like to log every request served by karyon, creating an 'Apache like' access log. I thought that creating an interceptor for this would be a good approach, but then realize that the out() method only receives the HttpServerResponse object as parameter. I'd like to access the HttpServerRequest too, so I could log data from both the request and the response.
How can I get this working? Is there a better approach for this?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions