1 write to _webHeaders
System.Net.HttpListener (1)
System\Net\HttpListenerResponse.cs (1)
26
_webHeaders
= new WebHeaderCollection();
15 references to _webHeaders
System.Net.HttpListener (15)
System\Net\HttpListenerResponse.cs (2)
23
get =>
_webHeaders
;
29
_webHeaders
.Add(headerName, value[headerName]);
System\Net\Managed\HttpListenerResponse.Managed.cs (13)
153
_webHeaders
.Clear();
154
_webHeaders
.Add(templateResponse.
_webHeaders
);
166
if (
_webHeaders
[HttpKnownHeaderNames.Server] == null)
168
_webHeaders
.Set(HttpKnownHeaderNames.Server, HttpHeaderStrings.NetCoreServerName);
171
if (
_webHeaders
[HttpKnownHeaderNames.Date] == null)
173
_webHeaders
.Set(HttpKnownHeaderNames.Date, DateTime.UtcNow.ToString("r", CultureInfo.InvariantCulture));
207
_webHeaders
.Set(HttpKnownHeaderNames.ContentLength, _contentLength.ToString("D", CultureInfo.InvariantCulture));
233
_webHeaders
.Set(HttpKnownHeaderNames.Connection, HttpHeaderStrings.Close);
239
_webHeaders
.Set(HttpKnownHeaderNames.TransferEncoding, HttpHeaderStrings.Chunked);
248
_webHeaders
.Set(HttpKnownHeaderNames.Connection, HttpHeaderStrings.Close);
262
_webHeaders
.Set(HttpKnownHeaderNames.Connection, HttpHeaderStrings.KeepAlive);
277
writer.Write(FormatHeaders(
_webHeaders
));