6 writes to AddServerHeader
InMemory.FunctionalTests (3)
MaxRequestLineSizeTests.cs (1)
89AddServerHeader = false,
RequestHeaderLimitsTests.cs (1)
163var options = new KestrelServerOptions { AddServerHeader = false };
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
62AddServerHeader = false
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
62AddServerHeader = false
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
62AddServerHeader = false
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
62AddServerHeader = false
4 references to AddServerHeader
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\HttpProtocol.cs (2)
1249if (ServerOptions.AddServerHeader && !responseHeaders.HasServer) 1361if (ServerOptions.AddServerHeader)
KestrelServerOptions.cs (2)
338writer.WritePropertyName(nameof(AddServerHeader)); 339writer.WriteBooleanValue(AddServerHeader);