Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for rawURL (2.72 sec)

  1. src/net/http/request.go

    	// and the path will end up in req.URL.Path, where it needs to be in order for
    	// RPC to work.
    	justAuthority := req.Method == "CONNECT" && !strings.HasPrefix(rawurl, "/")
    	if justAuthority {
    		rawurl = "http://" + rawurl
    	}
    
    	if req.URL, err = url.ParseRequestURI(rawurl); err != nil {
    		return nil, err
    	}
    
    	if justAuthority {
    		// Strip the bogus "http://" back off.
    		req.URL.Scheme = ""
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
Back to top