protected static function getAuthHeader($scheme, $username, $password = null)
	{
		if (!$password) return $scheme . ' ' . $username;
		return $scheme . ' ' . base64_encode($username . ':' . $password);
	}