3.40Setting the operation before sending the request

Created on Aug 17, 2026~1 min read

Before sending the HTTP remote request, you can perform some pre-processing operations.

cs
HttpRequestBuilder.Post("https://furion.net/")    .SetOnPreSendRequest(requestMessage =>    {        // Example: add a request header named "header1"        requestMessage.Headers.TryAddWithoutValidation("header1", "value1");    });

Note: The SetOnPreSendRequest method supports multiple calls, and the results of each call are accumulated and combined.