Skip to content

HostnameParts

Namespace: Vercel.AI.ProviderUtils

public static class HostnameParts

Checks a value before it is concatenated into a generated host.

Inheritance: object

View source

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

View source

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