1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-22 11:25:59 +00:00

add ProxyHandlerRemote and NewProxyRemote

This commit is contained in:
tuhao
2021-01-16 11:49:33 +08:00
parent 93fa23befa
commit 9eb7d9386d
2 changed files with 70 additions and 14 deletions

View File

@@ -64,6 +64,6 @@ func TestProxy(t *testing.T) {
e := httptest.NewInsecure(t, httptest.URL("http://"+listener.Addr().String()))
e.GET("/").Expect().Status(iris.StatusOK).Body().Equal(expectedIndex)
e.GET("/about").Expect().Status(iris.StatusOK).Body().Equal(expectedIndex)
e.GET("/notfound").Expect().Status(iris.StatusOK).Body().Equal(expectedIndex)
e.GET("/about").Expect().Status(iris.StatusOK).Body().Equal(expectedAbout)
e.GET("/notfound").Expect().Status(iris.StatusNotFound).Body().Equal(unexpectedRoute)
}