3.20Setting Request Headers to Remove

Created on Aug 17, 2026~1 min read

Removes the specified request headers.

cs
HttpRequestBuilder.Get("https://furion.net/")    .RemoveHeaders("User-Agent", "Host", "Accept"); // Remove multiple headers

Before sending the HTTP request, the set of request headers to remove specified in the configuration is removed. In other words, the RemoveHeaders method executes after all WithHeader[s] method calls.