Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply custom JS payload mapper for responses of Http endpoints in http-push connections #1761

Open
thjaeckle opened this issue Oct 2, 2023 · 0 comments

Comments

@thjaeckle
Copy link
Member

Currently, the HTTP response of a managed http connection can be used as response to a message forwarded by Ditto to that foreign endpoint.

Payload mapping can even be used to alter the request payload.
The response payload, however, can not be altered currently.

In oder to be able to do that, the target of a Http push connection would have to define a response payload mapper.
In case of JS mapper, we need a new function, mapping from externalMessage to externalMessage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant