3.74Removing the Trailing / from the URL

Created on Aug 17, 2026~1 min read

Some servers are sensitive to the trailing / in a path (for example, /api/ vs /api), which may cause a 301 redirect or route matching failure. When this feature is enabled, the framework automatically removes the trailing / from the path when constructing the final request address.

cs
HttpRequestBuilder.Post("https://furion.net/")    .RemoveTrailingSlash();HttpRequestBuilder.Post("https://furion.net/")    .RemoveTrailingSlash(false);    // Disable this feature (default value)

The request address will become https://furion.net.