예제 #1
0
        public static void ClearCookies(this IHttpService http, Uri uri)
        {
            var cookies = http.GetCookies(uri);

            foreach (var cookie in cookies)
            {
                cookie.Expired = true;
            }
        }
예제 #2
0
        public static IReadOnlyList <Cookie> GetCookies(this IHttpService http, string url)
        {
            var uri = new Uri(url);

            return(http.GetCookies(uri));
        }