Class BlockedSetCookieWithReason
A cookie which was not stored from a response with the corresponding reason.
public sealed record BlockedSetCookieWithReason : IEquatable<BlockedSetCookieWithReason>
- Inheritance
-
BlockedSetCookieWithReason
- Implements
- Inherited Members
Constructors
BlockedSetCookieWithReason(ImmutableArray<SetCookieBlockedReason>, string)
A cookie which was not stored from a response with the corresponding reason.
public BlockedSetCookieWithReason(ImmutableArray<SetCookieBlockedReason> BlockedReasons, string CookieLine)
Parameters
BlockedReasonsImmutableArray<SetCookieBlockedReason>The reason(s) this cookie was blocked.
CookieLinestringThe string representing this individual cookie as it would appear in the header. This is not the entire "cookie" or "set-cookie" header which could have multiple cookies.
Properties
BlockedReasons
The reason(s) this cookie was blocked.
public ImmutableArray<SetCookieBlockedReason> BlockedReasons { get; init; }
Property Value
Cookie
The cookie object which represents the cookie which was not stored. It is optional because sometimes complete cookie information is not available, such as in the case of parsing errors.
public Cookie? Cookie { get; init; }
Property Value
CookieLine
The string representing this individual cookie as it would appear in the header. This is not the entire "cookie" or "set-cookie" header which could have multiple cookies.
public string CookieLine { get; init; }