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