net/http.Request.URL (field)
92 uses
net/http (current package)
client.go#L177: for _, cookie := range c.Jar.Cookies(req.URL) {
client.go#L187: c.Jar.SetCookies(req.URL, rc)
client.go#L220: if req.URL == nil {
client.go#L247: if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
client.go#L599: if req.URL == nil {
client.go#L625: urlStr = stripPassword(resp.Request.URL)
client.go#L627: urlStr = stripPassword(req.URL)
client.go#L646: u, err := req.URL.Parse(loc)
client.go#L652: if req.Host != "" && req.Host != req.URL.Host {
client.go#L664: URL: u,
client.go#L687: if ref := refererForURL(reqs[len(reqs)-1].URL, req.URL, req.Header.Get("Referer")); ref != "" {
client.go#L801: if shouldCopyHeaderOnRedirect(k, preq.URL, req.URL) {
fs.go#L609: if strings.HasSuffix(r.URL.Path, indexPage) {
fs.go#L632: url := r.URL.Path
fs.go#L647: url := r.URL.Path
fs.go#L702: if q := r.URL.RawQuery; q != "" {
fs.go#L731: if containsDotDot(r.URL.Path) {
fs.go#L861: upath := r.URL.Path
fs.go#L864: r.URL.Path = upath
h2_bundle.go#L6084: URL: url_,
h2_bundle.go#L7636: if !(req.URL.Scheme == "https" || (req.URL.Scheme == "http" && t.AllowHTTP)) {
h2_bundle.go#L7640: addr := http2authorityAddr(req.URL.Scheme, req.URL.Host)
h2_bundle.go#L8947: if req.URL == nil {
h2_bundle.go#L8953: host = req.URL.Host
h2_bundle.go#L8965: path = req.URL.RequestURI()
h2_bundle.go#L8968: path = strings.TrimPrefix(path, req.URL.Scheme+"://"+host)
h2_bundle.go#L8970: if req.URL.Opaque != "" {
h2_bundle.go#L8971: return nil, fmt.Errorf("invalid request :path %q from URL.Opaque = %q", orig, req.URL.Opaque)
h2_bundle.go#L9008: f(":scheme", req.URL.Scheme)
request.go#L132: URL *url.URL
request.go#L384: r2.URL = cloneURL(r.URL)
request.go#L508: return r.Method == "PRI" && len(r.Header) == 0 && r.URL.Path == "*" && r.Proto == "HTTP/2.0"
request.go#L585: if r.URL == nil {
request.go#L588: host = r.URL.Host
request.go#L624: ruri := r.URL.RequestURI()
request.go#L625: if usingProxy && r.URL.Scheme != "" && r.URL.Opaque == "" {
request.go#L626: ruri = r.URL.Scheme + "://" + host + ruri
request.go#L627: } else if r.Method == "CONNECT" && r.URL.Path == "" {
request.go#L630: if r.URL.Opaque != "" {
request.go#L631: ruri = r.URL.Opaque
request.go#L890: URL: u,
request.go#L1077: if req.URL, err = url.ParseRequestURI(rawurl); err != nil {
request.go#L1083: req.URL.Scheme = ""
request.go#L1103: req.Host = req.URL.Host
request.go#L1297: if r.URL != nil {
request.go#L1299: newValues, e = url.ParseQuery(r.URL.RawQuery)
response.go#L142: if r.Request != nil && r.Request.URL != nil {
response.go#L143: return r.Request.URL.Parse(lv)
server.go#L2170: p := strings.TrimPrefix(r.URL.Path, prefix)
server.go#L2171: rp := strings.TrimPrefix(r.URL.RawPath, prefix)
server.go#L2172: if len(p) < len(r.URL.Path) && (r.URL.RawPath == "" || len(rp) < len(r.URL.RawPath)) {
server.go#L2175: r2.URL = new(url.URL)
server.go#L2176: *r2.URL = *r.URL
server.go#L2177: r2.URL.Path = p
server.go#L2178: r2.URL.RawPath = rp
server.go#L2204: oldpath := r.URL.Path
server.go#L2457: if u, ok := mux.redirectToPathSlash(r.URL.Host, r.URL.Path, r.URL); ok {
server.go#L2461: return mux.handler(r.Host, r.URL.Path)
server.go#L2467: path := cleanPath(r.URL.Path)
server.go#L2471: if u, ok := mux.redirectToPathSlash(host, path, r.URL); ok {
server.go#L2475: if path != r.URL.Path {
server.go#L2477: u := &url.URL{Path: path, RawQuery: r.URL.RawQuery}
server.go#L2481: return mux.handler(host, r.URL.Path)
server.go#L2952: if strings.Contains(r.URL.RawQuery, ";") {
server.go#L2955: r2.URL = new(url.URL)
server.go#L2956: *r2.URL = *r.URL
server.go#L2957: r2.URL.RawQuery = strings.ReplaceAll(r.URL.RawQuery, ";", "&")
transport.go#L449: return envProxyFunc()(req.URL)
transport.go#L491: if req.URL.Scheme == "https" && req.requiresHTTP1() {
transport.go#L509: return altProto[req.URL.Scheme]
transport.go#L518: if req.URL == nil {
transport.go#L526: scheme := req.URL.Scheme
transport.go#L566: if req.URL.Host == "" {
transport.go#L848: cm.targetScheme = treq.URL.Scheme
transport.go#L849: cm.targetAddr = canonicalAddr(treq.URL)
transport.go#L1692: URL: &url.URL{Opaque: cm.targetAddr},
nhooyr.io/websocket
dial.go#L76: switch req.URL.Scheme {
dial.go#L78: req.URL.Scheme = "http"
dial.go#L80: req.URL.Scheme = "https"
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |