System.Net.HttpListenerContext.GetKnownMethod C# (CSharp) Method

GetKnownMethod() private method

private GetKnownMethod ( ) : Interop.HttpApi.HTTP_VERB
return Interop.HttpApi.HTTP_VERB
        internal Interop.HttpApi.HTTP_VERB GetKnownMethod()
        {
            if (NetEventSource.IsEnabled) NetEventSource.Info(this, $"Visited {nameof(GetKnownMethod)}()");
            return Interop.HttpApi.GetKnownVerb(Request.RequestBuffer, Request.OriginalBlobAddress);
        }

Usage Example

Esempio n. 1
0
 internal UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS ComputeLeftToWrite()
 {
     GlobalLog.Print("HttpResponseStream#" + ValidationHelper.HashString(this) + "::ComputeLeftToWrite() on entry m_LeftToWrite:" + m_LeftToWrite);
     UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS flags = UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE;
     if (!m_HttpContext.Response.ComputedHeaders)
     {
         flags = m_HttpContext.Response.ComputeHeaders();
     }
     if (m_LeftToWrite == long.MinValue)
     {
         UnsafeNclNativeMethods.HttpApi.HTTP_VERB method = m_HttpContext.GetKnownMethod();
         m_LeftToWrite = method != UnsafeNclNativeMethods.HttpApi.HTTP_VERB.HttpVerbHEAD ? m_HttpContext.Response.ContentLength64 : 0;
         GlobalLog.Print("HttpResponseStream#" + ValidationHelper.HashString(this) + "::ComputeLeftToWrite() computed m_LeftToWrite:" + m_LeftToWrite);
     }
     return(flags);
 }
All Usage Examples Of System.Net.HttpListenerContext::GetKnownMethod