Home | History | Annotate | Download | only in http

Lines Matching refs:Proxy

3400 // proxy).  So then two people own that Request.Body (both the server
3452 var proxy *clientServerTest
3453 proxy = newClientServerTest(t, h2, HandlerFunc(func(rw ResponseWriter, req *Request) {
3459 bresp, err := proxy.c.Do(req2)
3461 errorf("Proxy outbound request: %v", err)
3466 errorf("Proxy copy error: %v", err)
3471 // Try to cause a race: Both the Transport and the proxy handler's Server
3476 proxy.c.Transport.(*Transport).CancelRequest(req2)
3480 defer proxy.close()
3497 req, _ := NewRequest("POST", proxy.ts.URL, io.LimitReader(neverEnding('a'), bodySize))
3498 res, err := proxy.c.Do(req)
3509 // We failed earlier. (e.g. on proxy.c.Do(req2))