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

◆ ShouldBufferResponse()

static bool System.Net.Http.HttpClient.ShouldBufferResponse ( HttpCompletionOption completionOption,
HttpRequestMessage request )
inlinestaticprivate

Definition at line 613 of file HttpClient.cs.

614 {
615 if (completionOption == HttpCompletionOption.ResponseContentRead)
616 {
617 return !string.Equals(request.Method.Method, "HEAD", StringComparison.OrdinalIgnoreCase);
618 }
619 return false;
620 }

References System.Net.Http.HttpMethod.Method, and System.Net.Http.HttpRequestMessage.Method.

Referenced by System.Net.Http.HttpClient.Send(), and System.Net.Http.HttpClient.SendAsync().