Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ClientTrace (0.13 sec)

  1. src/net/http/header.go

    	textproto.MIMEHeader(h).Del(key)
    }
    
    // Write writes a header in wire format.
    func (h Header) Write(w io.Writer) error {
    	return h.write(w, nil)
    }
    
    func (h Header) write(w io.Writer, trace *httptrace.ClientTrace) error {
    	return h.writeSubset(w, nil, trace)
    }
    
    // Clone returns a copy of h or nil if h is nil.
    func (h Header) Clone() Header {
    	if h == nil {
    		return nil
    	}
    
    	// Find total number of values.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. src/net/http/transport_dial_test.go

    	}
    	dt.roundTripCount++
    	dt.t.Logf("RoundTrip %v: started", rt.roundTripID)
    	dt.t.Cleanup(func() {
    		rt.cancel()
    		rt.finish()
    	})
    	go func() {
    		ctx = httptrace.WithClientTrace(ctx, &httptrace.ClientTrace{
    			GotConn: func(info httptrace.GotConnInfo) {
    				rt.conn = info.Conn.(*transportDialTesterConn)
    			},
    		})
    		req, _ := http.NewRequestWithContext(ctx, "POST", dt.cst.ts.URL, pr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top