3.41Setting the operation after receiving the response
Created on Aug 17, 2026~1 min read
After receiving the HTTP response, you can perform some post-processing operations.
HttpRequestBuilder.Post("https://furion.net/") .SetOnPostReceiveResponse((responseMessage, cancellationToken) => { // Example: print the response status code Console.WriteLine(responseMessage.StatusCode); return Task.CompletedTask; });Note: The SetOnPostReceiveResponse method supports multiple calls, and the results of each call are accumulated and combined.