Skip to content

Modify http_client response #1627

Answered by Jeffail
nuno-al asked this question in Q&A
Dec 15, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hey @nunodpalves you'd need to rework your flow so that instead of an http_client output you use an http processor, followed by whichever processors you want to use to modify the response, then follow it with a sync response processor: https://www.benthos.dev/docs/components/processors/sync_response.

In order to preserve delivery guarantees you'll want to follow this pattern for running processors as your output: https://www.benthos.dev/docs/components/processors/about#using-processors-as-outputs, and that'll ensure that if the processors fail you'll get either nacks or retries depending on your input.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nuno-al
Comment options

Answer selected by nuno-al
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants