65 references to HttpWriteMode
System (65)
net\System\Net\_Connection.cs (2)
2711
&& m_CurrentRequest.HttpWriteMode==
HttpWriteMode
.Chunked
3616
if (currentRequest != null && currentRequest.HttpWriteMode !=
HttpWriteMode
.None &&
net\System\Net\_ConnectStream.cs (10)
80
private
HttpWriteMode
m_HttpWriteMode;
213
GlobalLog.Assert(m_HttpWriteMode !=
HttpWriteMode
.Unknown, "ConnectStream#{0}::.ctor()|HttpWriteMode:{1}", ValidationHelper.HashString(this), m_HttpWriteMode);
214
m_BytesLeftToWrite = m_HttpWriteMode==
HttpWriteMode
.ContentLength ? request.ContentLength : -1;
215
if (request.HttpWriteMode==
HttpWriteMode
.Buffer) {
288
m_HttpWriteMode =
HttpWriteMode
.ContentLength;
325
return m_HttpWriteMode==
HttpWriteMode
.Chunked;
341
return m_HttpWriteMode !=
HttpWriteMode
.Unknown;
347
return m_HttpWriteMode !=
HttpWriteMode
.None;
641
GlobalLog.Assert(m_HttpWriteMode !=
HttpWriteMode
.None, "ConnectStream#{0}::ResubmitWrite()|m_HttpWriteMode == HttpWriteMode.None", ValidationHelper.HashString(this));
642
m_HttpWriteMode =
HttpWriteMode
.ContentLength;
net\System\Net\HttpWebRequest.cs (53)
202
private
HttpWriteMode
_HttpWriteMode;
671
internal
HttpWriteMode
HttpWriteMode {
1114
if( HttpWriteMode ==
HttpWriteMode
.Chunked){
1129
if (HttpWriteMode !=
HttpWriteMode
.None){
1131
if(HttpWriteMode ==
HttpWriteMode
.Buffer){
1134
HttpWriteMode =
HttpWriteMode
.ContentLength;
1151
if(HttpWriteMode ==
HttpWriteMode
.Chunked){
1152
HttpWriteMode =
HttpWriteMode
.ContentLength;
1167
else if(_ContentLength == 0 || HttpWriteMode ==
HttpWriteMode
.Chunked){
1176
if (HttpWriteMode ==
HttpWriteMode
.Chunked)
1196
if ((HttpWriteMode ==
HttpWriteMode
.Chunked) && ((_resendRequestContent == null) || NtlmKeepAlive)) {
1197
HttpWriteMode =
HttpWriteMode
.ContentLength;
1221
HttpWriteMode =
HttpWriteMode
.Chunked;
1280
if ((HttpWriteMode!=
HttpWriteMode
.Unknown && HttpWriteMode!=
HttpWriteMode
.None) || (ContentLength > 0) || SendChunked) {
1284
HttpWriteMode =
HttpWriteMode
.None;
1288
if (HttpWriteMode==
HttpWriteMode
.Unknown) {
1292
HttpWriteMode =
HttpWriteMode
.Chunked;
1297
HttpWriteMode =
HttpWriteMode
.Buffer;
1310
HttpWriteMode = ContentLength>=0 ?
HttpWriteMode
.ContentLength : onRequestStream ?
HttpWriteMode
.Buffer :
HttpWriteMode
.None;
1314
if (HttpWriteMode!=
HttpWriteMode
.Chunked) {
1722
return HttpWriteMode==
HttpWriteMode
.Chunked || HttpWriteMode==
HttpWriteMode
.Buffer || (HttpWriteMode==
HttpWriteMode
.ContentLength && ContentLength>0);
3457
if (HttpWriteMode ==
HttpWriteMode
.None)
4034
(HttpWriteMode ==
HttpWriteMode
.None || _OldSubmitWriteStream != null || _WriteAResult == null || _WriteAResult.IsCompleted == true ?
4056
if (context == null || context.InternalPeekCompleted || HttpWriteMode ==
HttpWriteMode
.None
4057
|| HttpWriteMode ==
HttpWriteMode
.Buffer || m_PendingReturnResult == DBNull.Value || m_OriginallyBuffered)
4227
if (HttpWriteMode!=
HttpWriteMode
.None) {
4289
if (HttpWriteMode!=
HttpWriteMode
.None) {
4372
if (HttpWriteMode==
HttpWriteMode
.Buffer) {
4454
return ((ContentLength>0 || HttpWriteMode==
HttpWriteMode
.Chunked)
4466
if (thisHttpWebRequest.HttpWriteMode ==
HttpWriteMode
.None)
4570
if (HttpWriteMode !=
HttpWriteMode
.None)
4604
if (NtlmKeepAlive && ((ContentLength == 0) || (HttpWriteMode ==
HttpWriteMode
.Chunked))) {
4615
if (HttpWriteMode !=
HttpWriteMode
.Chunked)
4994
GlobalLog.Assert(HttpWriteMode!=
HttpWriteMode
.Unknown, "HttpWebRequest#{0}::SerializeHeaders()|HttpWriteMode:{1}", ValidationHelper.HashString(this), HttpWriteMode);
4995
if (HttpWriteMode!=
HttpWriteMode
.None) {
4996
if (HttpWriteMode==
HttpWriteMode
.Chunked) {
5001
GlobalLog.Assert(HttpWriteMode ==
HttpWriteMode
.ContentLength, "HttpWebRequest#{0}::SerializeHeaders()|HttpWriteMode:{1}", ValidationHelper.HashString(this), HttpWriteMode);
5006
if ((ContentLength>0 || HttpWriteMode==
HttpWriteMode
.Chunked) && ExpectContinue) {
5156
_HttpWriteMode =
HttpWriteMode
.Unknown;
5282
HttpWriteMode = (
HttpWriteMode
)serializationInfo.GetInt32("_HttpWriteMode");
5695
&& HttpWriteMode !=
HttpWriteMode
.ContentLength && this.ServicePoint.InternalProxyServicePoint
5809
if (HttpWriteMode !=
HttpWriteMode
.None) {
5836
HttpWriteMode =
HttpWriteMode
.None;
5908
GlobalLog.Assert(HttpWriteMode !=
HttpWriteMode
.Unknown, "HttpWebRequest#{0}::CheckResubmit()|HttpWriteMode:{1}", ValidationHelper.HashString(this), HttpWriteMode);
5909
if (HttpWriteMode !=
HttpWriteMode
.None && !AllowWriteStreamBuffering && _resendRequestContent == null
5910
&& UserRetrievedWriteStream && (HttpWriteMode !=
HttpWriteMode
.ContentLength || ContentLength != 0))
6044
GlobalLog.Assert(HttpWriteMode !=
HttpWriteMode
.Unknown, "HttpWebRequest#{0}::ClearRequestForResubmit()|HttpWriteMode:{1}", ValidationHelper.HashString(this), HttpWriteMode);
6118
( _HttpWriteMode ==
HttpWriteMode
.Chunked || _ContentLength > 0 ) &&