Now supports the same upstream url by difrenciating by http method. Also broke up the proxy middleware into three seperate pieces that do their thing and stick something into the OWIN context

This commit is contained in:
TomPallister
2016-10-04 21:30:16 +01:00
parent da1957311b
commit ab8407e7dc
17 changed files with 227 additions and 82 deletions

View File

@ -50,7 +50,8 @@ namespace Ocelot.AcceptanceTests
new ReRoute
{
DownstreamTemplate = "http://localhost:51879/",
UpstreamTemplate = "/"
UpstreamTemplate = "/",
UpstreamHttpMethod = "Get"
}
}
}))
@ -72,7 +73,8 @@ namespace Ocelot.AcceptanceTests
new ReRoute
{
DownstreamTemplate = "http://localhost:51879/",
UpstreamTemplate = "/"
UpstreamTemplate = "/",
UpstreamHttpMethod = "Post"
}
}
}))