-
Hello, I really enjoy working with Ocelot, I was looking at Ocelot under the Request Aggregation section and on the very bottom of the doc is said that it is only implemented for the Get Verb, I was wondering when will they make for the other verbs which are Post, PUT, Delete? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @Joseg-05 ! What's your name? From Request Aggregation docs:
OK, let's start debates... The same for POST request which has a body data block by specification. Which downstream do we have to forward this body? How to recognize this downstream? If forward this body to all downstreams, how to process responses, because most of the downstream will return bad status?
Anyway, I would like to hear your design vision and probably to look at your draft solution. Please provide a feedback! @RaynaldM @ggnaegi Guys, what do you think? Please join the discussion if you have a time. |
Beta Was this translation helpful? Give feedback.
-
Artifacts of discussionSource code Docs Issues PRs |
Beta Was this translation helpful? Give feedback.
Hi @Joseg-05 ! What's your name?
Thanks for your interest in Ocelot gateway!
From Request Aggregation docs:
OK, let's start debates...
The reason why the feature is implemented for GET verb is request body data block of HTTP protocol.
It is natural thing that aggregated upstream cannot have multiple request bodies because Ocelot request router will make N additional requests to aggregated downstreams also without a body.
In theory even GET request can have a body but by specification it is not recommended.
And if we will forward GET body of upstream then how to decide which exact downstream service should receive this body?
In theory, we can …