37 references to StringValues
Microsoft.AspNetCore.Authentication.Cookies (1)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
291responseHeaders.SetCookie = new StringValues(newValues.ToArray());
Microsoft.AspNetCore.Components.Endpoints (1)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
291responseHeaders.SetCookie = new StringValues(newValues.ToArray());
Microsoft.AspNetCore.HeaderParsing.Tests (13)
ParserTests.cs (13)
30var sv = new StringValues(new[] { "Hello", "World" }); 69var sv = new StringValues(new[] { "Hello", "World" }); 138var sv = new StringValues(new[] { "Hello", "World" }); 157var sv = new StringValues(new[] { "attachment; filename=\"cool.html\"", "attachment; filename=\"cool.html\"" }); 185var sv = new StringValues(new[] { "text/html; charset=UTF-8", "text/html; charset=UTF-8" }); 283var sv = new StringValues(new[] { "http://foo.com", "http://bar.com" }); 313var sv = new StringValues(new[] { "bytes=200-1000", "bytes=3000-4000" }); 351var sv = new StringValues(new[] { "\"67ab43\"", "\"67ab43\"" }); 369var sv = new StringValues(new[] { " 1.1.1.1 , 192.168.1.100 ", " 3.3.3.3 " }); 379var sv = new StringValues(new[] { "1.1.1.1,192.168.1.100", "3.3.3.3" }); 391var sv = new StringValues(new[] { testValue }); 403var sv = new StringValues(new[] { testValue }); 416var sv = new StringValues(values);
Microsoft.AspNetCore.Http (2)
Features\QueryFeature.cs (1)
210_accumulator[entry.Key] = new StringValues(entry.Value.ToArray());
Internal\ResponseCookies.cs (1)
160Headers.SetCookie = new StringValues(newValues.ToArray());
Microsoft.AspNetCore.Http.Extensions (2)
HeaderDictionaryTypeExtensions.cs (2)
85headers[name] = new StringValues(newValues); 115Headers.Append(name, new StringValues(newValues));
Microsoft.AspNetCore.Mvc.Core (1)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
291responseHeaders.SetCookie = new StringValues(newValues.ToArray());
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
294value = new(values);
Microsoft.AspNetCore.ResponseCaching (3)
ResponseCachingMiddleware.cs (3)
273var varyHeaders = new StringValues(headers.GetCommaSeparatedValues(HeaderNames.Vary)); 274var varyQueryKeys = new StringValues(context.HttpContext.Features.Get<IResponseCachingFeature>()?.VaryByQueryKeys); 539return new StringValues(newArray);
Microsoft.AspNetCore.WebUtilities (1)
KeyValueAccumulator.cs (1)
101_accumulator[entry.Key] = new StringValues(entry.Value.ToArray());
Microsoft.Extensions.Primitives (12)
StringValues.cs (12)
27public static readonly StringValues Empty = new StringValues(Array.Empty<string>()); 64return new StringValues(values); 469return new StringValues(combined); 494return new StringValues(combined); 519return new StringValues(combined); 606public static bool Equals(string?[]? left, StringValues right) => Equals(new StringValues(left), right); 614public static bool Equals(StringValues left, string?[]? right) => Equals(left, new StringValues(right)); 621public bool Equals(string?[]? other) => Equals(this, new StringValues(other)); 646public static bool operator ==(StringValues left, string?[]? right) => Equals(left, new StringValues(right)); 654public static bool operator !=(StringValues left, string?[]? right) => !Equals(left, new StringValues(right)); 657public static bool operator ==(string?[]? left, StringValues right) => Equals(new StringValues(left), right); 665public static bool operator !=(string?[]? left, StringValues right) => !Equals(new StringValues(left), right);