61 references to SetCookie
CodeGenerator (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
235HeaderNames.SetCookie,
InMemory.FunctionalTests (2)
Http2\Http2ConnectionTests.cs (2)
2390Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]); 2407Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]);
Microsoft.AspNetCore.Authentication.Test (13)
OpenIdConnect\OpenIdConnectEventTests.cs (3)
1015Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values)); 1041Assert.False(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values)); 1067Assert.False(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values));
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (3)
1015Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values)); 1041Assert.False(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values)); 1067Assert.False(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values));
TwitterTests.cs (3)
212Assert.True(transaction.Response.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookie)); 262Assert.True(transaction.Response.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookie)); 369Assert.True(transaction.Response.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookie));
WsFederation\WsFederationTest.cs (2)
194var cookie = response.Headers.GetValues(HeaderNames.SetCookie).Single(); 264var cookies = SetCookieHeaderValue.ParseList(response.Headers.GetValues(HeaderNames.SetCookie).ToList());
WsFederation\WsFederationTest_Handler.cs (2)
192var cookie = response.Headers.GetValues(HeaderNames.SetCookie).Single(); 262var cookies = SetCookieHeaderValue.ParseList(response.Headers.GetValues(HeaderNames.SetCookie).ToList());
Microsoft.AspNetCore.CookiePolicy.Test (3)
CookieChunkingTests.cs (3)
290httpContext.Response.Headers[HeaderNames.SetCookie] = new[] 303Assert.Equal(8, httpContext.Response.Headers[HeaderNames.SetCookie].Count); 314}, httpContext.Response.Headers[HeaderNames.SetCookie]);
Microsoft.AspNetCore.Http.Extensions (1)
ResponseHeaders.cs (1)
196Headers.SetList(HeaderNames.SetCookie, value);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
HeaderDictionaryTypeExtensionsTest.cs (1)
243var result = context.Request.GetTypedHeaders().GetList<SetCookieHeaderValue>(HeaderNames.SetCookie);
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
212StringValues SetCookie { get => this[HeaderNames.SetCookie]; set => this[HeaderNames.SetCookie] = value; }
Microsoft.AspNetCore.Identity.FunctionalTests (5)
MapIdentityApiTests.cs (5)
113Assert.False(loginResponse.Headers.Contains(HeaderNames.SetCookie)); 214Assert.True(loginResponse.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookieHeaders)); 1148Assert.False(infoPostResponse.Headers.Contains(HeaderNames.SetCookie)); 1169Assert.False(emailConfirmationResponse.Headers.Contains(HeaderNames.SetCookie)); 1470Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookieHeaders));
Microsoft.AspNetCore.Mvc.FunctionalTests (5)
TempDataInCookiesTest.cs (5)
69Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out IEnumerable<string> setCookieValues)); 95Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out setCookieValues)); 128Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out IEnumerable<string> setCookieValues)); 151Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out setCookieValues)); 181Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out IEnumerable<string> setCookieValues));
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\CookieContainerHandler.cs (1)
52if (response.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookieHeaders))
Microsoft.AspNetCore.Security.Microbenchmarks (2)
ChunkingCookieManagerBenchmark.cs (2)
55_httpContext.Response.Headers[HeaderNames.SetCookie] = StringValues.Empty; 62_httpContext.Response.Headers[HeaderNames.SetCookie] = StringValues.Empty;
Microsoft.AspNetCore.Server.HttpSys (3)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
679if (response.Headers.ContainsKey(HeaderNames.SetCookie)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
52HeaderNames.SetCookie,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
35HeaderNames.WWWAuthenticate, HeaderNames.Authorization, HeaderNames.ProxyAuthenticate, HeaderNames.ProxyAuthorization, HeaderNames.SetCookie, HeaderNames.Cookie,
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
52HeaderNames.SetCookie,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
35HeaderNames.WWWAuthenticate, HeaderNames.Authorization, HeaderNames.ProxyAuthenticate, HeaderNames.ProxyAuthorization, HeaderNames.SetCookie, HeaderNames.Cookie,
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Internal\Http\HttpHeaders.Generated.cs (17)
353HeaderNames.SetCookie, 2384if (!TryGetUnknown(HeaderNames.SetCookie, ref value)) 2393SetValueUnknown(HeaderNames.SetCookie, value); 9705ValidateHeaderValueCharacters(HeaderNames.SetCookie, value, EncodingSelector); 11182if (ReferenceEquals(HeaderNames.SetCookie, key)) 11210if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 11906if (ReferenceEquals(HeaderNames.SetCookie, key)) 11926if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 12607if (ReferenceEquals(HeaderNames.SetCookie, key)) 12639if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 13499if (ReferenceEquals(HeaderNames.SetCookie, key)) 13531if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 14724array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.SetCookie, _headers._SetCookie); 15434_current = new KeyValuePair<string, StringValues>(HeaderNames.SetCookie, _collection._headers._SetCookie); 16775if (!TryGetUnknown(HeaderNames.SetCookie, ref value)) 16784ValidateHeaderValueCharacters(HeaderNames.SetCookie, value, EncodingSelector); 16785SetValueUnknown(HeaderNames.SetCookie, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
235HeaderNames.SetCookie,
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
52HeaderNames.SetCookie,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
35HeaderNames.WWWAuthenticate, HeaderNames.Authorization, HeaderNames.ProxyAuthenticate, HeaderNames.ProxyAuthorization, HeaderNames.SetCookie, HeaderNames.Cookie,