func AuthHTTPRequest(req *http.Request, info *Info) error {
	var tag string
	if info.Tag != nil {
		tag = info.Tag.String()
	}
	return authHTTPRequest(req, tag, info.Password, info.Nonce, info.Macaroons)
}
// AuthHTTPRequest adds Juju auth info (username, password, nonce, macaroons)
// to the given HTTP request, suitable for sending to a Juju API server.
AuthHTTPRequest adds Juju auth info (username, password, nonce, macaroons)
to the given HTTP request, suitable for sending to a Juju API server.
// AuthHTTPRequest adds Juju auth info ( username password nonce macaroons ) // to the given HTTP request suitable for sending to a Juju API server .
func AuthHTTPRequest(req *http.Request, info *Info) error {
	var tag string
	if info.Tag != nil {
		tag = info.Tag.String()
	}
	return authHTTPRequest(req, tag, info.Password, info.Nonce, info.Macaroons)
}
func AuthHTTPRequest ( req * http . Request , info * Info ) error { var tag string if info . Tag != nil { tag = info . Tag . String ( ) } return authHTTPRequest ( req , tag , info . Password , info . Nonce , info . Macaroons ) }
AuthHTTPRequest adds Juju auth info (username, password, nonce, macaroons)
to the given HTTP request, suitable for sending to a Juju API server.
AuthHTTPRequest adds Juju auth info ( username password nonce macaroons ) to the given HTTP request suitable for sending to a Juju API server .