2 writes to _headers
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
191get { return _headers ??= new WebHeaderCollection(); } 192set { _headers = value; }
16 references to _headers
System.Net.WebClient (16)
System\Net\WebClient.cs (16)
713if (_headers == null) 724string? accept = _headers[HttpKnownHeaderNames.Accept]; 725string? connection = _headers[HttpKnownHeaderNames.Connection]; 726string? contentType = _headers[HttpKnownHeaderNames.ContentType]; 727string? expect = _headers[HttpKnownHeaderNames.Expect]; 728string? referrer = _headers[HttpKnownHeaderNames.Referer]; 729string? userAgent = _headers[HttpKnownHeaderNames.UserAgent]; 730string? 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); 740request.Headers = _headers;