net/url.URL.User (field)
29 uses
net/url (current package)
url.go#L373: User *Userinfo // username and password information
url.go#L567: url.User, url.Host, err = parseAuthority(authority)
url.go#L836: if !u.OmitHost && (u.Scheme != "" || u.Host != "" || u.User != nil) {
url.go#L837: username := u.User.Username()
url.go#L838: password, _ := u.User.Password()
url.go#L854: if u.Scheme != "" || u.Host != "" || u.User != nil {
url.go#L855: if u.OmitHost && u.Host == "" && u.User == nil {
url.go#L858: if u.Host != "" || u.Path != "" || u.User != nil {
url.go#L861: if ui := u.User; ui != nil {
url.go#L906: if _, has := ru.User.Password(); has {
url.go#L907: ru.User = UserPassword(ru.User.Username(), "xxxxx")
url.go#L1121: if ref.Scheme != "" || ref.Host != "" || ref.User != nil {
url.go#L1129: url.User = nil
url.go#L1143: url.User = nil
url.go#L1150: url.User = u.User
net/http
client.go#L160: if lastReq.User != nil {
client.go#L167: auth := lastReq.User.String() + "@"
client.go#L246: if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
client.go#L1031: _, passSet := u.User.Password()
client.go#L1033: 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#L938: if u := cm.proxyURL.User; u != nil {
transport.go#L1751: if u := cm.proxyURL.User; u != nil {
![]() |
The pages are generated with Golds v0.7.6. (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. |