Table of Contents

Method TransformSegments

Namespace
Sisk.Core.Helpers
Assembly
Sisk.Core.dll

TransformSegments(Func<string, string?>)

Applies a transformation function to each URL segment.

public UrlBuilder TransformSegments(Func<string, string?> fn)

Parameters

fn Func<string, string>

A function that takes a segment as input and returns the transformed segment, or null to remove the segment.

Returns

UrlBuilder

The current UrlBuilder instance, with the segments transformed.