Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ComputeLeftToWrite()

global.Interop.HttpApi.HTTP_FLAGS System.Net.HttpResponseStream.ComputeLeftToWrite ( )
inlinepackage

Definition at line 157 of file HttpResponseStream.cs.

158 {
159 if (System.Net.NetEventSource.Log.IsEnabled())
160 {
161 System.Net.NetEventSource.Info(this, "_LeftToWrite:" + _leftToWrite, "ComputeLeftToWrite");
162 }
163 global::Interop.HttpApi.HTTP_FLAGS result = global::Interop.HttpApi.HTTP_FLAGS.NONE;
165 {
167 }
168 if (_leftToWrite == long.MinValue)
169 {
170 global::Interop.HttpApi.HTTP_VERB knownMethod = _httpContext.GetKnownMethod();
171 _leftToWrite = ((knownMethod != global::Interop.HttpApi.HTTP_VERB.HttpVerbHEAD) ? _httpContext.Response.ContentLength64 : 0);
172 if (System.Net.NetEventSource.Log.IsEnabled())
173 {
174 System.Net.NetEventSource.Info(this, "_LeftToWrite:" + _leftToWrite, "ComputeLeftToWrite");
175 }
176 }
177 return result;
178 }
global::Interop.HttpApi.HTTP_VERB GetKnownMethod()
global::Interop.HttpApi.HTTP_FLAGS ComputeHeaders()
readonly HttpListenerContext _httpContext
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)

References System.Net.HttpResponseStream._httpContext, System.Net.HttpResponseStream._leftToWrite, System.Net.HttpListenerResponse.ComputedHeaders, System.Net.HttpListenerResponse.ComputeHeaders(), System.Net.HttpListenerResponse.ContentLength64, System.Net.HttpListenerContext.GetKnownMethod(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, and System.Net.HttpListenerContext.Response.

Referenced by System.Net.HttpResponseStream.BeginWriteCore(), System.Net.HttpResponseStream.DisposeCore(), and System.Net.HttpResponseStream.WriteCore().