- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestReverseProxyModifyResponse (0.21 sec)
-
src/net/http/httputil/reverseproxy_test.go
Proto: "HTTP/1.0", ProtoMajor: 1, }) } // Issue 14237. Test ModifyResponse and that an error from it // causes the proxy to return StatusBadGateway, or StatusOK otherwise. func TestReverseProxyModifyResponse(t *testing.T) { backendServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Header().Add("X-Hit-Mod", fmt.Sprintf("%v", r.URL.Path == "/mod")) }))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 54.6K bytes - Viewed (0)