Class CookieParam
Cookie parameter object
public sealed record CookieParam : IEquatable<CookieParam>
- Inheritance
-
CookieParam
- Implements
- Inherited Members
Constructors
CookieParam(string, string)
Cookie parameter object
public CookieParam(string Name, string Value)
Parameters
Properties
Domain
Cookie domain.
public string? Domain { get; init; }
Property Value
Expires
Cookie expiration date, session cookie if not set
public TimeSinceEpoch? Expires { get; init; }
Property Value
HttpOnly
True if cookie is http-only.
public bool? HttpOnly { get; init; }
Property Value
- bool?
Name
Cookie name.
public string Name { get; init; }
Property Value
PartitionKey
Cookie partition key. If not set, the cookie will be set as not partitioned.
public CookiePartitionKey? PartitionKey { get; init; }
Property Value
Path
Cookie path.
public string? Path { get; init; }
Property Value
Priority
Cookie Priority.
public CookiePriority? Priority { get; init; }
Property Value
SameSite
Cookie SameSite type.
public CookieSameSite? SameSite { get; init; }
Property Value
Secure
True if cookie is secure.
public bool? Secure { get; init; }
Property Value
- bool?
SourcePort
Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
public long? SourcePort { get; init; }
Property Value
- long?
SourceScheme
Cookie source scheme type.
public CookieSourceScheme? SourceScheme { get; init; }
Property Value
Url
The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.
public string? Url { get; init; }
Property Value
Value
Cookie value.
public string Value { get; init; }