Skip to content

PathSegments

Namespace: Vercel.AI.ProviderUtils

public static class PathSegments

Encodes provider-returned identifiers for URL paths.

Inheritance: object

View source

public static string Encode(string value)

Encodes a raw identifier as one URL path segment, including standalone dot segments that URL parsers would otherwise normalize. Pass unencoded values; for resource paths with intentional slashes, encode each segment separately.

Parameters

Name Type Description
value string

Returns: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product