11 references to ContentLength
System (11)
net\System\Net\_ConnectStream.cs (3)
214
m_BytesLeftToWrite = m_HttpWriteMode==HttpWriteMode.
ContentLength
? request.ContentLength : -1;
288
m_HttpWriteMode = HttpWriteMode.
ContentLength
;
642
m_HttpWriteMode = HttpWriteMode.
ContentLength
;
net\System\Net\HttpWebRequest.cs (8)
1134
HttpWriteMode = HttpWriteMode.
ContentLength
;
1152
HttpWriteMode = HttpWriteMode.
ContentLength
;
1197
HttpWriteMode = HttpWriteMode.
ContentLength
;
1310
HttpWriteMode = ContentLength>=0 ? HttpWriteMode.
ContentLength
: onRequestStream ? HttpWriteMode.Buffer : HttpWriteMode.None;
1722
return HttpWriteMode==HttpWriteMode.Chunked || HttpWriteMode==HttpWriteMode.Buffer || (HttpWriteMode==HttpWriteMode.
ContentLength
&& ContentLength>0);
5001
GlobalLog.Assert(HttpWriteMode == HttpWriteMode.
ContentLength
, "HttpWebRequest#{0}::SerializeHeaders()|HttpWriteMode:{1}", ValidationHelper.HashString(this), HttpWriteMode);
5695
&& HttpWriteMode != HttpWriteMode.
ContentLength
&& this.ServicePoint.InternalProxyServicePoint
5910
&& UserRetrievedWriteStream && (HttpWriteMode != HttpWriteMode.
ContentLength
|| ContentLength != 0))