3.25Setting Path Segments to Remove

Created on Aug 17, 2026~1 min read

Removes the specified path segments.

cs
HttpRequestBuilder.Get("https://furion.net/docs/login/users")    .RemovePathSegments("docs", "user"); // Removes multiple path segments

The resulting final URL is: https://furion.net/login.

Before the HTTP request is sent, the configured set of path segments to remove will be removed. In other words, the RemovePathSegments method executes after all WithPathSegment[s] method calls.