mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-20 17:42:50 +08:00
fix docs formatting for http method transformation
This commit is contained in:
parent
ddf8b01d36
commit
fc3b6fdb8b
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user