registry/handlers/basicauth.go (
7
lines of code) (
raw
):
package handlers import ( "net/http" ) func basicAuth(r *http.Request) (username, password string, ok bool) { return r.BasicAuth() }