Base:
method
Set
System.Collections.Specialized.NameValueCollection.Set(System.String, System.String)
16 references to Set
System.Net.HttpListener (13)
System\Net\HttpListenerResponse.cs (5)
48
Headers.
Set
(HttpKnownHeaderNames.ContentType, value);
140
Headers.
Set
(HttpKnownHeaderNames.Location, value);
176
Headers.
Set
(name, value);
222
Headers.
Set
(HttpKnownHeaderNames.SetCookie, setCookie);
231
Headers.
Set
(HttpKnownHeaderNames.SetCookie2, setCookie2);
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
251
_headers.
Set
(name, val);
System\Net\Managed\HttpListenerResponse.Managed.cs (7)
168
_webHeaders.
Set
(HttpKnownHeaderNames.Server, HttpHeaderStrings.NetCoreServerName);
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);
System.Net.WebHeaderCollection (2)
System\Net\WebHeaderCollection.cs (2)
128
this.
Set
(header.GetName(), value);
137
this.
Set
(header.GetName(), value);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\ClientWebSocketOptions.cs (1)
80
RequestHeaders.
Set
(headerName, headerValue);