Exemple #1
0
 /// <summary>
 /// Copies the cookies from a <see cref="HttpResponseMessage"/> into a new <see cref="HttpContent"/>
 /// </summary>
 /// <param name="request"></param>
 /// <param name="response"></param>
 public static void CopyCookiesFromResponse(this HttpContent request, HttpResponseMessage response) =>
 request.AddCookies(response.ExtractCookies());