Skip to content

Commit fc3b6fd

Browse files
committed
fix docs formatting for http method transformation
1 parent ddf8b01 commit fc3b6fd

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/features/methodtransformation.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ This achieved by setting the following ReRoute configuration:
77

88
.. code-block:: json
99
10-
{
11-
"DownstreamPathTemplate": "/{url}",
12-
"UpstreamPathTemplate": "/{url}",
13-
"UpstreamHttpMethod": [
14-
"Get"
15-
],
16-
"DownstreamHttpMethod": "POST",
17-
"DownstreamScheme": "http",
18-
"DownstreamHostAndPorts": [
19-
{
20-
"Host": "localhost",
21-
"Port": 53271
22-
}
23-
],
24-
}
10+
{
11+
"DownstreamPathTemplate": "/{url}",
12+
"UpstreamPathTemplate": "/{url}",
13+
"UpstreamHttpMethod": [
14+
"Get"
15+
],
16+
"DownstreamHttpMethod": "POST",
17+
"DownstreamScheme": "http",
18+
"DownstreamHostAndPorts": [
19+
{
20+
"Host": "localhost",
21+
"Port": 53271
22+
}
23+
],
24+
}
2525
2626
The key property here is DownstreamHttpMethod which is set as POST and the ReRoute will only match on GET as set by UpstreamHttpMethod.
2727

0 commit comments

Comments
 (0)