Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for rawURL (0.28 sec)

  1. src/net/http/cgi/child.go

    	if r.Host != "" {
    		// Hostname is provided, so we can reasonably construct a URL.
    		rawurl := r.Host + uriStr
    		if r.TLS == nil {
    			rawurl = "http://" + rawurl
    		} else {
    			rawurl = "https://" + rawurl
    		}
    		url, err := url.Parse(rawurl)
    		if err != nil {
    			return nil, errors.New("cgi: failed to parse host and REQUEST_URI into a URL: " + rawurl)
    		}
    		r.URL = url
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. src/net/url/url.go

    		s += ":" + escape(u.password, encodeUserPassword)
    	}
    	return s
    }
    
    // Maybe rawURL is of the form scheme:path.
    // (Scheme must be [a-zA-Z][a-zA-Z0-9+.-]*)
    // If so, return scheme, path; else return "", rawURL.
    func getScheme(rawURL string) (scheme, path string, err error) {
    	for i := 0; i < len(rawURL); i++ {
    		c := rawURL[i]
    		switch {
    		case 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z':
    		// do nothing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  3. 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)
  4. src/internal/trace/traceviewer/static/trace_viewer_full.html

    let rawName;let rawUrl;if(prefix==='Script:'){rawName='';rawUrl=body;}else{const spacePos=body.lastIndexOf(' ');rawName=spacePos!==-1?body.substr(0,spacePos):body;rawUrl=spacePos!==-1?body.substr(spacePos+1):'';}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top