<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.1.1" />

CookieHeaderValue

public class CookieHeaderValue : ICloneable
Provides value for the cookie header.
public Collection<CookieState> Cookies { get; }

Gets a collection of cookies sent by the client.

public string Domain { get; set; }

Gets or sets the domain to associate the cookie with.

public DateTimeOffset? Expires { get; set; }

Gets or sets the expiration date and time for the cookie.

public bool HttpOnly { get; set; }

Gets or sets a value that specifies whether a cookie is accessible by client-side script.

public CookieState this[string name] { get; }

Gets a shortcut to the cookie property.

public TimeSpan? MaxAge { get; set; }

Gets or sets the maximum age permitted for a resource.

public string Path { get; set; }

Gets or sets the virtual path to transmit with the current cookie.

public bool Secure { get; set; }

Gets or sets a value indicating whether to transmit the cookie using Secure Sockets Layer (SSL)—that is, over HTTPS only.

public CookieHeaderValue(string name, string value)

Initializes a new instance of the CookieHeaderValue class.

public CookieHeaderValue(string name, NameValueCollection values)

Initializes a new instance of the CookieHeaderValue class.

protected CookieHeaderValue()

Initializes a new instance of the CookieHeaderValue class.

public static bool TryParse(string input, out CookieHeaderValue parsedValue)

Indicates a value whether the string representation will be converted.

public object Clone()

Creates a shallow copy of the cookie value.