public static void ClearCookies(this IHttpService http, Uri uri) { var cookies = http.GetCookies(uri); foreach (var cookie in cookies) { cookie.Expired = true; } }
public static IReadOnlyList <Cookie> GetCookies(this IHttpService http, string url) { var uri = new Uri(url); return(http.GetCookies(uri)); }