net/url.URL.User (field)
32 uses
net/url (current package)
url.go#L278: User *Userinfo // username and password information
url.go#L491: url.User, url.Host, err = parseAuthority(url.Scheme, authority)
url.go#L804: if !u.OmitHost && (u.Scheme != "" || u.Host != "" || u.User != nil) {
url.go#L805: username := u.User.Username()
url.go#L806: password, _ := u.User.Password()
url.go#L822: if u.Scheme != "" || u.Host != "" || u.User != nil {
url.go#L823: if u.OmitHost && u.Host == "" && u.User == nil {
url.go#L826: if u.Host != "" || u.Path != "" || u.User != nil {
url.go#L829: if ui := u.User; ui != nil {
url.go#L874: if _, has := ru.User.Password(); has {
url.go#L875: ru.User = UserPassword(ru.User.Username(), "xxxxx")
url.go#L1117: if ref.Scheme != "" || ref.Host != "" || ref.User != nil {
url.go#L1125: url.User = nil
url.go#L1139: url.User = nil
url.go#L1146: url.User = u.User
net/http
client.go#L160: if lastReq.User != nil {
client.go#L167: auth := lastReq.User.String() + "@"
client.go#L251: if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
client.go#L1048: _, passSet := u.User.Password()
client.go#L1050: return strings.Replace(u.String(), u.User.String()+"@", u.User.Username()+":***@", 1)
clone.go#L47: if u.User != nil {
clone.go#L48: u2.User = new(url.Userinfo)
clone.go#L49: *u2.User = *u.User
transport.go#L1000: if u := cm.proxyURL.User; u != nil {
transport.go#L1838: if u := cm.proxyURL.User; u != nil {
golang.org/x/net/proxy
proxy.go#L83: if u.User != nil {
proxy.go#L85: auth.User = u.User.Username()
proxy.go#L86: if p, ok := u.User.Password(); ok {
 |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |