github.com/lusis/distribution@v2.0.1+incompatible/registry/handlers/basicauth.go (about) 1 // +build go1.4 2 3 package handlers 4 5 import ( 6 "net/http" 7 ) 8 9 func basicAuth(r *http.Request) (username, password string, ok bool) { 10 return r.BasicAuth() 11 }