HostnameParts
Namespace: Vercel.AI.ProviderUtils
public static class HostnamePartsChecks a value before it is concatenated into a generated host.
Inheritance: object
Methods
Section titled “Methods”IsValidHostnamePart(string?)
Section titled “IsValidHostnamePart(string?)”public static bool IsValidHostnamePart(string? value)Returns whether <code class=“paramref”>value</code> is one DNS label: 1–63 letters, digits, or hyphens, with no leading or trailing hyphen.
Parameters
| Name | Type | Description |
|---|---|---|
value |
string |
Returns: bool
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product