code: func BasicAuth(o AuthOptions) func(http.Handler) http.Handler {
  	fn := func(h http.Handler) http.Handler {
  		return basicAuth{h, o}
  	}
  	return fn
  }
docs: // BasicAuth provides HTTP middleware for protecting URIs with HTTP Basic Authentication
  // as per RFC 2617. The server authenticates a user:password combination provided in the
  // "Authorization" HTTP header.
  //
  // Example:
  //
  //     package main
  //
  //     import(
  //            "net/http"
  //            "github.com/zenazn/goji"
  //            "github.com/goji/httpauth"
  //     )
  //
  //     func main() {
  //          basicOpts := httpauth.AuthOptions{
  //                      Realm: "Restricted",
  //                      User: "Dave",
  //                      Password: "ClearText",
  //                  }
  //
  //          goji.Use(httpauth.BasicAuth(basicOpts), SomeOtherMiddleware)
  //          goji.Get("/thing", myHandler)
  //  }
  //
  // Note: HTTP Basic Authentication credentials are sent in plain text, and therefore it does
  // not make for a wholly secure authentication mechanism. You should serve your content over
  // HTTPS to mitigate this, noting that "Basic Authentication" is meant to be just that: basic!