Home | History | Annotate | Download | only in http

Lines Matching refs:username

835 // BasicAuth returns the username and password provided in the request's
838 func (r *Request) BasicAuth() (username, password string, ok bool) {
848 func parseBasicAuth(auth string) (username, password string, ok bool) {
866 // Basic Authentication with the provided username and password.
868 // With HTTP Basic Authentication the provided username and password
870 func (r *Request) SetBasicAuth(username, password string) {
871 r.Header.Set("Authorization", "Basic "+basicAuth(username, password))