Skip to content

How to add placeholder value in upstream path to header in downstream path? #1863

Answered by raman-m
S-sona asked this question in Q&A
Discussion options

You must be logged in to vote

Dear Author,

You need to use a combination of 3 features

Currently Ocelot doesn't transform from placeholder to a header except limited number of system placeholders.
We can discuss this functionality, and consider it as a feature... Will you contribute with a PR?

But we believe that writing custom delegating handler to convert URL path parts into a headers should be pretty easy for you.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;) Headers Transform Ocelot feature: Headers Transformation Delegating Handlers Ocelot feature: Delegating Handlers
2 participants
Converted from issue

This discussion was converted from issue #1595 on December 23, 2023 16:02.