Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ClientTrace (0.43 sec)

  1. src/net/http/httputil/reverseproxy.go

    // sends it to another server, proxying the response back to the
    // client.
    //
    // 1xx responses are forwarded to the client if the underlying
    // transport supports ClientTrace.Got1xxResponse.
    type ReverseProxy struct {
    	// Rewrite must be a function which modifies
    	// the request into a new request to be sent
    	// using Transport. Its response is then copied
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 23:37:42 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    	newServerRequest := func(tr *panicOnNonReuseTransport) *http.Request {
    		req, _ := http.NewRequest("GET", fmt.Sprintf("https://127.0.0.1:%d", ts.Listener.Addr().(*net.TCPAddr).Port), nil)
    		trace := &httptrace.ClientTrace{
    			GotConn: tr.GotConn,
    		}
    		return req.WithContext(httptrace.WithClientTrace(req.Context(), trace))
    	}
    
    	// client
    	clientCACertPool := x509.NewCertPool()
    	clientCACertPool.AppendCertsFromPEM(tsCrt)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. src/net/http/transfer.go

    		if t.Method == "GET" || t.Method == "HEAD" {
    			return false
    		}
    		return true
    	}
    
    	return false
    }
    
    func (t *transferWriter) writeHeader(w io.Writer, trace *httptrace.ClientTrace) error {
    	if t.Close && !hasToken(t.Header.get("Connection"), "close") {
    		if _, err := io.WriteString(w, "Connection: close\r\n"); err != nil {
    			return err
    		}
    		if trace != nil && trace.WroteHeaderField != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go

    			var cancel context.CancelFunc
    			ctx, cancel = context.WithTimeout(req.Context(), timeout)
    			defer cancel()
    
    			req = req.WithContext(ctx)
    		}
    
    		// setup trace
    		trace := &httptrace.ClientTrace{
    			GotConn: func(connInfo httptrace.GotConnInfo) {
    				callback(connInfo)
    			},
    		}
    		req = req.WithContext(httptrace.WithClientTrace(req.Context(), trace))
    
    		response, err := client.Do(req)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  5. src/net/http/clientserver_test.go

    			if v, ok := header[h]; ok {
    				t.Errorf("%s is %q; must not be sent", h, v)
    			}
    		}
    	}
    
    	var respCounter uint8
    	trace := &httptrace.ClientTrace{
    		Got1xxResponse: func(code int, header textproto.MIMEHeader) error {
    			switch respCounter {
    			case 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
Back to top