net/url.URL.Scheme (field)
64 uses
net/url (current package)
url.go#L363: Scheme string
url.go#L519: if url.Scheme, rest, err = getScheme(rawURL); err != nil {
url.go#L522: url.Scheme = strings.ToLower(url.Scheme)
url.go#L532: if url.Scheme != "" {
url.go#L553: if (url.Scheme != "" || !viaRequest && !strings.HasPrefix(rest, "///")) && strings.HasPrefix(rest, "//") {
url.go#L563: } else if url.Scheme != "" && strings.HasPrefix(rest, "/") {
url.go#L810: if u.Scheme != "" {
url.go#L811: buf.WriteString(u.Scheme)
url.go#L817: if u.Scheme != "" || u.Host != "" || u.User != nil {
url.go#L1059: return u.Scheme != ""
url.go#L1081: if ref.Scheme == "" {
url.go#L1082: url.Scheme = u.Scheme
url.go#L1084: if ref.Scheme != "" || ref.Host != "" || ref.User != nil {
url.go#L1130: result = u.Scheme + ":" + result
net/http
client.go#L153: if lastReq.Scheme == "https" && newReq.Scheme == "http" {
h2_bundle.go#L6875: if u.Scheme == "" {
h2_bundle.go#L6879: u.Scheme = wantScheme
h2_bundle.go#L6882: if u.Scheme != wantScheme {
h2_bundle.go#L6883: return fmt.Errorf("cannot push URL with scheme %q from request with scheme %q", u.Scheme, wantScheme)
h2_bundle.go#L7005: scheme: msg.url.Scheme,
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#L8968: path = strings.TrimPrefix(path, req.URL.Scheme+"://"+host)
h2_bundle.go#L9008: f(":scheme", req.URL.Scheme)
h2_bundle.go#L10529: http2encKV(enc, ":scheme", w.url.Scheme)
request.go#L625: if usingProxy && r.URL.Scheme != "" && r.URL.Opaque == "" {
request.go#L626: ruri = r.URL.Scheme + "://" + host + ruri
request.go#L1083: req.URL.Scheme = ""
server.go#L2203: if u.Scheme == "" && u.Host == "" {
transport.go#L491: if req.URL.Scheme == "https" && req.requiresHTTP1() {
transport.go#L509: return altProto[req.URL.Scheme]
transport.go#L526: scheme := req.URL.Scheme
transport.go#L848: cm.targetScheme = treq.URL.Scheme
transport.go#L1645: case cm.proxyURL.Scheme == "socks5":
transport.go#L1840: if (cm.proxyURL.Scheme == "http" || cm.proxyURL.Scheme == "https") && cm.targetScheme == "http" {
transport.go#L1855: return cm.proxyURL.Scheme
transport.go#L2772: port = portMap[url.Scheme]
github.com/gotd/td/telegram/auth/qrlogin
token.go#L26: case parsed.Scheme != "tg":
token.go#L27: return Token{}, errors.Errorf("unexpected scheme %q", parsed.Scheme)
go.uber.org/zap
sink.go#L106: if u.Scheme == "" {
sink.go#L107: u.Scheme = schemeFile
sink.go#L111: factory, ok := sr.factories[u.Scheme]
sink.go#L114: return nil, &errSinkNotFound{u.Scheme}
golang.org/x/net/proxy
proxy.go#L91: switch u.Scheme {
proxy.go#L104: if f, ok := proxySchemes[u.Scheme]; ok {
proxy.go#L109: return nil, errors.New("proxy: unknown scheme: " + u.Scheme)
nhooyr.io/websocket
dial.go#L76: switch req.URL.Scheme {
dial.go#L78: req.URL.Scheme = "http"
dial.go#L80: req.URL.Scheme = "https"
dial.go#L177: switch u.Scheme {
dial.go#L179: u.Scheme = "http"
dial.go#L181: u.Scheme = "https"
dial.go#L184: return nil, fmt.Errorf("unexpected url scheme: %q", u.Scheme)
vendor/golang.org/x/net/http/httpproxy
proxy.go#L128: if reqURL.Scheme == "https" {
proxy.go#L130: } else if reqURL.Scheme == "http" {
proxy.go#L153: (proxyURL.Scheme != "http" &&
proxy.go#L154: proxyURL.Scheme != "https" &&
proxy.go#L155: proxyURL.Scheme != "socks5") {
proxy.go#L290: port = portMap[url.Scheme]
|
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. |