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

◆ SendRequestContentWithExpect100ContinueAsync()

async Task System.Net.Http.HttpConnection.SendRequestContentWithExpect100ContinueAsync ( HttpRequestMessage request,
Task< bool > allowExpect100ToContinueTask,
HttpContentWriteStream stream,
Timer expect100Timer,
bool async,
CancellationToken cancellationToken )
inlineprivate

Definition at line 1748 of file HttpConnection.cs.

1749 {
1751 expect100Timer.Dispose();
1752 if (flag)
1753 {
1754 if (System.Net.NetEventSource.Log.IsEnabled())
1755 {
1756 Trace("Sending request content for Expect: 100-continue.", "SendRequestContentWithExpect100ContinueAsync");
1757 }
1758 try
1759 {
1761 return;
1762 }
1763 catch
1764 {
1765 Dispose();
1766 throw;
1767 }
1768 }
1769 if (System.Net.NetEventSource.Log.IsEnabled())
1770 {
1771 Trace("Canceling request content for Expect: 100-continue.", "SendRequestContentWithExpect100ContinueAsync");
1772 }
1773 }
async ValueTask SendRequestContentAsync(HttpRequestMessage request, HttpContentWriteStream stream, bool async, CancellationToken cancellationToken)
override void Trace(string message, [CallerMemberName] string memberName=null)
static readonly System.Net.NetEventSource Log

References System.cancellationToken, System.Net.Http.HttpConnection.Dispose(), System.Net.NetEventSource.Log, System.Net.Http.HttpConnection.SendRequestContentAsync(), System.stream, and System.Net.Http.HttpConnection.Trace().

Referenced by System.Net.Http.HttpConnection.SendAsyncCore().