Skip to content

Commit

Permalink
fix docs formatting for http method transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPallister committed Feb 9, 2020
1 parent ddf8b01 commit fc3b6fd
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docs/features/methodtransformation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ This achieved by setting the following ReRoute configuration:

.. code-block:: json
{
"DownstreamPathTemplate": "/{url}",
"UpstreamPathTemplate": "/{url}",
"UpstreamHttpMethod": [
"Get"
],
"DownstreamHttpMethod": "POST",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 53271
}
],
}
{
"DownstreamPathTemplate": "/{url}",
"UpstreamPathTemplate": "/{url}",
"UpstreamHttpMethod": [
"Get"
],
"DownstreamHttpMethod": "POST",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 53271
}
],
}
The key property here is DownstreamHttpMethod which is set as POST and the ReRoute will only match on GET as set by UpstreamHttpMethod.

Expand Down

0 comments on commit fc3b6fd

Please sign in to comment.