3 instantiations of SetCookieHeaderValue
Microsoft.AspNetCore.Http (1)
Internal\ResponseCookies.cs (1)
34var setCookieHeaderValue = new SetCookieHeaderValue(key, Uri.EscapeDataString(value))
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
113var cookie = new SetCookieHeaderValue(name, value)
Microsoft.Net.Http.Headers (1)
SetCookieHeaderValue.cs (1)
485var result = new SetCookieHeaderValue();
36 references to SetCookieHeaderValue
Microsoft.AspNetCore.Http (1)
Internal\ResponseCookies.cs (1)
34var setCookieHeaderValue = new SetCookieHeaderValue(key, Uri.EscapeDataString(value))
Microsoft.AspNetCore.Http.Extensions (6)
HeaderDictionaryTypeExtensions.cs (4)
165private static IList<SetCookieHeaderValue> ParseSetCookieHeaderValue(IList<string> value) => 166SetCookieHeaderValue.TryParseList(value, out var result) ? result : Array.Empty<SetCookieHeaderValue>(); 253else if (typeof(T) == typeof(SetCookieHeaderValue))
ResponseHeaders.cs (2)
188public IList<SetCookieHeaderValue> SetCookie 192return Headers.SetCookie.GetList<SetCookieHeaderValue>();
Microsoft.AspNetCore.Http.Features (3)
CookieOptions.cs (3)
109/// Creates a <see cref="SetCookieHeaderValue"/> using the current options. 111public SetCookieHeaderValue CreateCookieHeader(string name, string value) 113var cookie = new SetCookieHeaderValue(name, value)
Microsoft.Net.Http.Headers (26)
SetCookieHeaderValue.cs (26)
38private static readonly HttpHeaderParser<SetCookieHeaderValue> SingleValueParser 39= new GenericHeaderParser<SetCookieHeaderValue>(false, GetSetCookieLength); 40private static readonly HttpHeaderParser<SetCookieHeaderValue> MultipleValueParser 41= new GenericHeaderParser<SetCookieHeaderValue>(true, GetSetCookieLength); 53/// Initializes a new instance of <see cref="SetCookieHeaderValue"/>. 62/// Initializes a new instance of <see cref="SetCookieHeaderValue"/>. 330/// Append string representation of this <see cref="SetCookieHeaderValue"/> to given 335/// <see cref="SetCookieHeaderValue"/>. 408/// Parses <paramref name="input"/> as a <see cref="SetCookieHeaderValue"/> value. 412public static SetCookieHeaderValue Parse(StringSegment input) 419/// Attempts to parse the specified <paramref name="input"/> as a <see cref="SetCookieHeaderValue"/>. 423/// <returns><see langword="true"/> if input is a valid <see cref="SetCookieHeaderValue"/>, otherwise <see langword="false"/>.</returns> 424public static bool TryParse(StringSegment input, [NotNullWhen(true)] out SetCookieHeaderValue? parsedValue) 431/// Parses a sequence of inputs as a sequence of <see cref="SetCookieHeaderValue"/> values. 435public static IList<SetCookieHeaderValue> ParseList(IList<string>? inputs) 441/// Parses a sequence of inputs as a sequence of <see cref="SetCookieHeaderValue"/> values using string parsing rules. 445public static IList<SetCookieHeaderValue> ParseStrictList(IList<string>? inputs) 451/// Attempts to parse the sequence of values as a sequence of <see cref="SetCookieHeaderValue"/>. 455/// <returns><see langword="true"/> if all inputs are valid <see cref="SetCookieHeaderValue"/>, otherwise <see langword="false"/>.</returns> 456public static bool TryParseList(IList<string>? inputs, [NotNullWhen(true)] out IList<SetCookieHeaderValue>? parsedValues) 462/// Attempts to parse the sequence of values as a sequence of <see cref="SetCookieHeaderValue"/> using string parsing rules. 467public static bool TryParseStrictList(IList<string>? inputs, [NotNullWhen(true)] out IList<SetCookieHeaderValue>? parsedValues) 473private static int GetSetCookieLength(StringSegment input, int startIndex, out SetCookieHeaderValue? parsedValue) 485var result = new SetCookieHeaderValue(); 726var other = obj as SetCookieHeaderValue;