Exemple #1
0
func getAuth(r *http.Request) *githttp.BasicAuth {
	username, password, _ := r.BasicAuth()

	return githttp.NewBasicAuth(username, password)
}
//export c_NewBasicAuth
func c_NewBasicAuth(username, password string) uint64 {
	auth := http.NewBasicAuth(CopyString(username), CopyString(password))
	return uint64(RegisterObject(auth))
}