Lines Matching refs:URL
19 "net/url"
111 // Hostname is provided, so we can reasonably construct a URL.
118 url, err := url.Parse(rawurl)
120 return nil, errors.New("cgi: failed to parse host and REQUEST_URI into a URL: " + rawurl)
122 r.URL = url
124 // Fallback logic if we don't have a Host header or the URL
126 if r.URL == nil {
127 url, err := url.Parse(uriStr)
129 return nil, errors.New("cgi: failed to parse REQUEST_URI into a URL: " + uriStr)
131 r.URL = url
192 fmt.Fprintf(os.Stderr, "CGI attempted to write header twice on request for %s", r.req.URL)