Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DNSDoneInfo (0.1 sec)

  1. src/net/http/httptrace/example_test.go

    	trace := &httptrace.ClientTrace{
    		GotConn: func(connInfo httptrace.GotConnInfo) {
    			fmt.Printf("Got Conn: %+v\n", connInfo)
    		},
    		DNSDone: func(dnsInfo httptrace.DNSDoneInfo) {
    			fmt.Printf("DNS Info: %+v\n", dnsInfo)
    		},
    	}
    	req = req.WithContext(httptrace.WithClientTrace(req.Context(), trace))
    	_, err := http.DefaultTransport.RoundTrip(req)
    	if err != nil {
    		log.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 05:11:45 UTC 2016
    - 712 bytes
    - Viewed (0)
  2. src/net/http/httptrace/trace.go

    		})
    		tv.Field(i).Set(newFunc)
    	}
    }
    
    // DNSStartInfo contains information about a DNS request.
    type DNSStartInfo struct {
    	Host string
    }
    
    // DNSDoneInfo contains information about the results of a DNS lookup.
    type DNSDoneInfo struct {
    	// Addrs are the IPv4 and/or IPv6 addresses found in the DNS
    	// lookup. The contents of the slice should not be mutated.
    	Addrs []net.IPAddr
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top