public static Task <T> GetJsonAsync <T>(this string url, int weight) { RequestLimitUtil.RequestBlock(weight); return(url.GetJsonAsync <T>()); }
/// <summary> /// /// </summary> /// <param name="url"></param> /// <param name="weight">权重</param> /// <returns></returns> public static Task <IFlurlResponse> GetAsync(this string url, int weight) { RequestLimitUtil.RequestBlock(weight); return(url.GetAsync()); }