...

Source file src/github.com/docker/distribution/registry/handlers/basicauth.go

Documentation: github.com/docker/distribution/registry/handlers

     1  //go:build go1.4
     2  // +build go1.4
     3  
     4  package handlers
     5  
     6  import (
     7  	"net/http"
     8  )
     9  
    10  func basicAuth(r *http.Request) (username, password string, ok bool) {
    11  	return r.BasicAuth()
    12  }
    13  

View as plain text