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

◆ SendRequestContentAsync()

async ValueTask System.Net.Http.HttpConnection.SendRequestContentAsync ( HttpRequestMessage request,
HttpContentWriteStream stream,
bool async,
CancellationToken cancellationToken )
inlineprivate

Definition at line 1721 of file HttpConnection.cs.

1722 {
1724 if (HttpTelemetry.Log.IsEnabled())
1725 {
1726 HttpTelemetry.Log.RequestContentStart();
1727 }
1728 if (async)
1729 {
1731 }
1732 else
1733 {
1735 }
1736 await stream.FinishAsync(async).ConfigureAwait(continueOnCapturedContext: false);
1738 if (HttpTelemetry.Log.IsEnabled())
1739 {
1740 HttpTelemetry.Log.RequestContentStop(stream.BytesWritten);
1741 }
1742 if (System.Net.NetEventSource.Log.IsEnabled())
1743 {
1744 Trace("Finished sending request content.", "SendRequestContentAsync");
1745 }
1746 }
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
readonly TransportContext _transportContext
ValueTask FlushAsync(bool async)
override void Trace(string message, [CallerMemberName] string memberName=null)
static readonly System.Net.NetEventSource Log
ConfiguredValueTaskAwaitable ConfigureAwait(bool continueOnCapturedContext)
Definition ValueTask.cs:312

References System.Net.Http.HttpConnection._startedSendingRequestBody, System.Net.Http.HttpConnection._transportContext, System.cancellationToken, System.Threading.Tasks.ValueTask< TResult >.ConfigureAwait(), System.Collections.Generic.Dictionary< TKey, TValue >.CopyTo(), System.Net.Http.HttpConnection.FlushAsync(), System.Net.Http.HttpTelemetry.Log, System.Net.NetEventSource.Log, System.stream, and System.Net.Http.HttpConnection.Trace().

Referenced by System.Net.Http.HttpConnection.SendAsyncCore(), and System.Net.Http.HttpConnection.SendRequestContentWithExpect100ContinueAsync().