2 writes to _headers
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
191
get { return
_headers
??= new WebHeaderCollection(); }
192
set {
_headers
= value; }
16 references to _headers
System.Net.WebClient (16)
System\Net\WebClient.cs (16)
713
if (
_headers
== null)
724
string? accept =
_headers
[HttpKnownHeaderNames.Accept];
725
string? connection =
_headers
[HttpKnownHeaderNames.Connection];
726
string? contentType =
_headers
[HttpKnownHeaderNames.ContentType];
727
string? expect =
_headers
[HttpKnownHeaderNames.Expect];
728
string? referrer =
_headers
[HttpKnownHeaderNames.Referer];
729
string? userAgent =
_headers
[HttpKnownHeaderNames.UserAgent];
730
string? host =
_headers
[HttpKnownHeaderNames.Host];
732
_headers
.Remove(HttpKnownHeaderNames.Accept);
733
_headers
.Remove(HttpKnownHeaderNames.Connection);
734
_headers
.Remove(HttpKnownHeaderNames.ContentType);
735
_headers
.Remove(HttpKnownHeaderNames.Expect);
736
_headers
.Remove(HttpKnownHeaderNames.Referer);
737
_headers
.Remove(HttpKnownHeaderNames.UserAgent);
738
_headers
.Remove(HttpKnownHeaderNames.Host);
740
request.Headers =
_headers
;