10 writes to HttpWriteMode
System (10)
net\System\Net\HttpWebRequest.cs (10)
1134
HttpWriteMode
= HttpWriteMode.ContentLength;
1152
HttpWriteMode
= HttpWriteMode.ContentLength;
1197
HttpWriteMode
= HttpWriteMode.ContentLength;
1221
HttpWriteMode
= HttpWriteMode.Chunked;
1284
HttpWriteMode
= HttpWriteMode.None;
1292
HttpWriteMode
= HttpWriteMode.Chunked;
1297
HttpWriteMode
= HttpWriteMode.Buffer;
1310
HttpWriteMode
= ContentLength>=0 ? HttpWriteMode.ContentLength : onRequestStream ? HttpWriteMode.Buffer : HttpWriteMode.None;
5282
HttpWriteMode
= (HttpWriteMode)serializationInfo.GetInt32("_HttpWriteMode");
5836
HttpWriteMode
= HttpWriteMode.None;
54 references to HttpWriteMode
System (54)
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 (2)
211
m_HttpWriteMode = request.
HttpWriteMode
;
215
if (request.
HttpWriteMode
==HttpWriteMode.Buffer) {
net\System\Net\HttpWebRequest.cs (50)
1114
if(
HttpWriteMode
== HttpWriteMode.Chunked){
1124
GlobalLog.Print("HttpWebRequest#" + ValidationHelper.HashString(this) + "::SwitchToContentLength() Switching to HttpWriteMode.ContentLength from:" +
HttpWriteMode
.ToString());
1129
if (
HttpWriteMode
!= HttpWriteMode.None){
1131
if(
HttpWriteMode
== HttpWriteMode.Buffer){
1151
if(
HttpWriteMode
== HttpWriteMode.Chunked){
1167
else if(_ContentLength == 0 ||
HttpWriteMode
== HttpWriteMode.Chunked){
1176
if (
HttpWriteMode
== HttpWriteMode.Chunked)
1196
if ((
HttpWriteMode
== HttpWriteMode.Chunked) && ((_resendRequestContent == null) || NtlmKeepAlive)) {
1272
GlobalLog.Print("HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckProtocol(" + onRequestStream + ") HttpWriteMode:" +
HttpWriteMode
+ " SendChunked:" + SendChunked + " ContentLength:" + ContentLength);
1280
if ((
HttpWriteMode
!=HttpWriteMode.Unknown &&
HttpWriteMode
!=HttpWriteMode.None) || (ContentLength > 0) || SendChunked) {
1288
if (
HttpWriteMode
==HttpWriteMode.Unknown) {
1314
if (
HttpWriteMode
!=HttpWriteMode.Chunked) {
1327
GlobalLog.Print("HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckProtocol(" + onRequestStream + ") no error, returning null. HttpWriteMode:" +
HttpWriteMode
+ " SendChunked:" + SendChunked + " ContentLength:" + ContentLength);
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) {
4426
GlobalLog.Print("HttpWebRequest#" + ValidationHelper.HashString(this) + "::EndWriteHeaders() ContentLength:" + ContentLength + " HttpWriteMode:" +
HttpWriteMode
+ " _ServicePoint.Understands100Continue:" + _ServicePoint.Understands100Continue + " ExpectContinue:" + ExpectContinue);
4454
return ((ContentLength>0 ||
HttpWriteMode
==HttpWriteMode.Chunked)
4466
if (thisHttpWebRequest.
HttpWriteMode
== HttpWriteMode.None)
4569
GlobalLog.Print("HttpWebRequest#" + ValidationHelper.HashString(this) + "::EndWriteHeaders_Part2() ConnectStream#" + ValidationHelper.HashString(submitWriteStream) + " HttpWriteMode:" +
HttpWriteMode
+ " HaveResponse:" + HaveResponse);
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) {
4997
GlobalLog.Assert(!CurrentMethod.ContentBodyNotAllowed, "HttpWebRequest#{0}::SerializeHeaders()|!ContentBodyNotAllowed CurrentMethod:{1} HttpWriteMode:{2} ContentLength:{3}", ValidationHelper.HashString(this), CurrentMethod,
HttpWriteMode
, ContentLength);
5001
GlobalLog.Assert(
HttpWriteMode
== HttpWriteMode.ContentLength, "HttpWebRequest#{0}::SerializeHeaders()|HttpWriteMode:{1}", ValidationHelper.HashString(this),
HttpWriteMode
);
5002
GlobalLog.Assert(!CurrentMethod.ContentBodyNotAllowed, "HttpWebRequest#{0}::SerializeHeaders()|!ContentBodyNotAllowed CurrentMethod:{1} HttpWriteMode:{2} ContentLength:{3}", ValidationHelper.HashString(this), CurrentMethod,
HttpWriteMode
, ContentLength);
5006
if ((ContentLength>0 ||
HttpWriteMode
==HttpWriteMode.Chunked) && ExpectContinue) {
5357
serializationInfo.AddValue("_HttpWriteMode",
HttpWriteMode
);
5695
&&
HttpWriteMode
!= HttpWriteMode.ContentLength && this.ServicePoint.InternalProxyServicePoint
5809
if (
HttpWriteMode
!= HttpWriteMode.None) {
5832
GlobalLog.Print("HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckResubmit() disabling upload HttpWriteMode:" +
HttpWriteMode
+ " SubmitWriteStream#" + ValidationHelper.HashString(_SubmitWriteStream));
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
);