PathSegments
Namespace: Vercel.AI.ProviderUtils
public static class PathSegmentsEncodes provider-returned identifiers for URL paths.
Inheritance: object
Methods
Section titled “Methods”Encode(string)
Section titled “Encode(string)”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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product