Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for ClientTrace (0.12 sec)

  1. 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)
  2. 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)
  3. src/net/http/serve_test.go

    				}
    				return false
    			}
    			return true
    		})
    		conns := 0
    		var info httptrace.GotConnInfo
    		ctx := httptrace.WithClientTrace(context.Background(), &httptrace.ClientTrace{
    			GotConn: func(v httptrace.GotConnInfo) {
    				conns++
    				info = v
    			},
    		})
    		req, err := NewRequestWithContext(ctx, "GET", cst.ts.URL, nil)
    		if err != nil {
    			t.Fatal(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top