3116 {
3118 {
3119 Trace(
$"{request}",
"SendAsync");
3120 }
3121 try
3122 {
3123 bool mustFlush = request.Content !=
null && request.HasHeaders && request.Headers.ExpectContinue ==
true;
3125 bool flag = request.Content !=
null &&
request.Content.AllowDuplex;
3129 bool flag2 = requestBodyTask.IsCompleted || !flag;
3132 {
3134 }
3136 {
3137 try
3138 {
3140 }
3141 catch (Exception
value)
3142 {
3144 {
3145 Trace(
$"Sending request content failed: {value}",
"SendAsync");
3146 }
3148 throw;
3149 }
3150 }
3151 else
3152 {
3154 }
3157 }
3158 catch (Exception
ex)
3159 {
3161 {
3163 }
3164 throw;
3165 }
3166 }
async ValueTask< Http2Stream > SendHeadersAsync(HttpRequestMessage request, CancellationToken cancellationToken, bool mustFlush)
override void Trace(string message, [CallerMemberName] string memberName=null)
void LogExceptions(Task task)
static readonly System.Net.NetEventSource Log
static string net_http_client_execution_error
static Task< Task > WhenAny(params Task[] tasks)