Skip to content

Caronte: the best way to implemente modification on the request and on the response ?  #490

Open
@abarre

Description

@abarre

hi,
after reading the code, I see that the middleware feature wasn't on the source code anymore.

So I have few questions :

  • how can we do some asynchronous verification/modification on the request ? It was easy with the middleware but I don't see how to do it now. I see that some events are emitted but it's not possible to perform a async job on an event.
  • I would like to be able to modify the response going to the client. I don't know where I can add a stream that transform the response (See http://nodejs.org/docs/v0.10.0/api/stream.html#stream_class_stream_transform). Is there any hook that I missed?

If we agree on the best way to extend the proxy, I would be glad to contribute with a pull request.

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