func makePkgGoDevRequest(ctx context.Context, redirectHost, redirectPath string) (_ *RequestEvent, err error) {
	defer derrors.Wrap(&err, "makePkgGoDevRequest(%q, %q)", redirectHost, redirectPath)
	redirectURL := redirectHost + redirectPath
	req, err := http.NewRequest("GET", redirectURL, nil)
	if err != nil {
		return nil, err
	}
	start := time.Now()
	resp, err := ctxhttp.Do(ctx, http.DefaultClient, req)
	if err != nil {
		return nil, err
	}
	return &RequestEvent{
		Host:    redirectHost,
		Path:    redirectPath,
		URL:     redirectURL,
		Status:  resp.StatusCode,
		Latency: time.Since(start),
	}, nil
}
// makePkgGoDevRequest makes a request to the redirectHost and redirectPath,
// and returns a requestEvent based on the output.
makePkgGoDevRequest makes a request to the redirectHost and redirectPath,
and returns a requestEvent based on the output.
// makePkgGoDevRequest makes a request to the redirectHost and redirectPath // and returns a requestEvent based on the output .
func makePkgGoDevRequest(ctx context.Context, redirectHost, redirectPath string) (_ *RequestEvent, err error) {
	defer derrors.Wrap(&err, "makePkgGoDevRequest(%q, %q)", redirectHost, redirectPath)
	redirectURL := redirectHost + redirectPath
	req, err := http.NewRequest("GET", redirectURL, nil)
	if err != nil {
		return nil, err
	}
	start := time.Now()
	resp, err := ctxhttp.Do(ctx, http.DefaultClient, req)
	if err != nil {
		return nil, err
	}
	return &RequestEvent{
		Host:    redirectHost,
		Path:    redirectPath,
		URL:     redirectURL,
		Status:  resp.StatusCode,
		Latency: time.Since(start),
	}, nil
}
func makePkgGoDevRequest ( ctx context . Context , redirectHost , redirectPath string ) ( _ * RequestEvent , err error ) { defer derrors . Wrap ( & err , " " , redirectHost , redirectPath ) redirectURL := redirectHost + redirectPath req , err := http . NewRequest ( " " , redirectURL , nil ) if err != nil { return nil , err } start := time . Now ( ) resp , err := ctxhttp . Do ( ctx , http . DefaultClient , req ) if err != nil { return nil , err } return & RequestEvent { Host : redirectHost , Path : redirectPath , URL : redirectURL , Status : resp . StatusCode , Latency : time . Since ( start ) , } , nil }
makePkgGoDevRequest makes a request to the redirectHost and redirectPath,
and returns a requestEvent based on the output.
makePkgGoDevRequest makes a request to the redirectHost and redirectPath and returns a requestEvent based on the output .