ProviderValues.OptionalHeader
Namespace: Vercel.AI.ProviderUtils
public readonly struct ProviderValues.OptionalHeaderHeader values that may be omitted.
Constructors
Section titled “Constructors”OptionalHeader(string?)
Section titled “OptionalHeader(string?)”public OptionalHeader(string? value)Creates a header value. Null means the header is omitted.
Parameters
| Name | Type | Description |
|---|---|---|
value |
string |
Properties
Section titled “Properties”HasValue
Section titled “HasValue”public bool HasValue { get; }True when the caller supplied a value, including null.
Value: bool
Omitted
Section titled “Omitted”public static ProviderValues.OptionalHeader Omitted { get; }An omitted header.
Value: ProviderValues.OptionalHeader
public string? Value { get; }Header value.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product