public static void AddCookies(this IHttpService http, IEnumerable <Cookie> cookies, Uri uri) { foreach (var cookie in cookies) { http.AddCookie(cookie, uri); } }
public static void AddCookies(this IHttpService http, IEnumerable <Cookie> cookies, string url = null) { var uri = url == null ? null : new Uri(url); foreach (var cookie in cookies) { http.AddCookie(cookie, uri); } }
public static void AddCookie(this IHttpService http, Cookie cookie, string url = null) { var uri = url == null ? null : new Uri(url); http.AddCookie(cookie, uri); }
public static void AddCookie(this IHttpService http, SimpleCookie cookie) { http.AddCookie(cookie.ToCookie()); }