-
I need to take a part of the route like I have given below route {
"DownstreamPathTemplate": "/shopping/payment/verify/",
"DownstreamScheme": "http",
"UpstreamPathTemplate": "/shopping/payment/verify/{headerval1}/{headerval2}",
"UpstreamHttpMethod": [ "POST", "Options" ],
"ServiceName": "shopping",
"SwaggerKey": "shopping",
"DelegatingHandlers": [
"PathToHeaderDelegatingHandler"
]
}, Can someone help me with the delegating handler? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
can anyone help me with this issue ? |
Beta Was this translation helpful? Give feedback.
-
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. But we believe that writing custom delegating handler to convert URL path parts into a headers should be pretty easy for you. |
Beta Was this translation helpful? Give feedback.
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.