4 writes to m_headers
System (4)
net\System\Net\webclient.cs (4)
204
m_headers
= new WebHeaderCollection(WebHeaderCollectionType.WebRequest);
209
m_headers
= value;
602
m_headers
= new WebHeaderCollection(WebHeaderCollectionType.WebRequest);
742
m_headers
= new WebHeaderCollection(WebHeaderCollectionType.WebRequest);
25 references to m_headers
System (25)
net\System\Net\webclient.cs (25)
203
if (
m_headers
== null) {
206
return
m_headers
;
601
if (
m_headers
== null) {
605
string contentType =
m_headers
[HttpKnownHeaderNames.ContentType];
626
m_headers
[HttpKnownHeaderNames.ContentType] = UploadFileContentType + "; boundary=" + boundary;
649
m_headers
[HttpKnownHeaderNames.ContentType] = contentType;
741
if (
m_headers
== null) {
745
string contentType =
m_headers
[HttpKnownHeaderNames.ContentType];
750
m_headers
[HttpKnownHeaderNames.ContentType] = UploadValuesContentType;
918
if ((
m_headers
!= null) && (request is HttpWebRequest)) {
920
string accept =
m_headers
[HttpKnownHeaderNames.Accept];
921
string connection =
m_headers
[HttpKnownHeaderNames.Connection];
922
string contentType =
m_headers
[HttpKnownHeaderNames.ContentType];
923
string expect =
m_headers
[HttpKnownHeaderNames.Expect];
924
string referrer =
m_headers
[HttpKnownHeaderNames.Referer];
925
string userAgent =
m_headers
[HttpKnownHeaderNames.UserAgent];
926
string host =
m_headers
[HttpKnownHeaderNames.Host];
928
m_headers
.RemoveInternal(HttpKnownHeaderNames.Accept);
929
m_headers
.RemoveInternal(HttpKnownHeaderNames.Connection);
930
m_headers
.RemoveInternal(HttpKnownHeaderNames.ContentType);
931
m_headers
.RemoveInternal(HttpKnownHeaderNames.Expect);
932
m_headers
.RemoveInternal(HttpKnownHeaderNames.Referer);
933
m_headers
.RemoveInternal(HttpKnownHeaderNames.UserAgent);
934
m_headers
.RemoveInternal(HttpKnownHeaderNames.Host);
935
request.Headers =
m_headers
;