github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/go/internal/auth/auth.go (about)

     1  // Copyright 2019 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package auth provides access to user-provided authentication credentials.
     6  package auth
     7  
     8  import "github.com/shogo82148/std/net/http"
     9  
    10  // AddCredentials fills in the user's credentials for req, if any.
    11  // The return value reports whether any matching credentials were found.
    12  func AddCredentials(req *http.Request) (added bool)