Skip to content

DownloadResult

Namespace: Vercel.AI.Util

public sealed class DownloadResult

Bytes and media type returned by Download.GetAsync.

Inheritance: object

View source

public DownloadResult(byte[]? data, string? mediaType)

Creates a download result.

Parameters

Name Type Description
data byte[]
mediaType string

View source

public byte[] Data { get; }

Response body.

Value: byte[]

View source

public string? MediaType { get; }

Content-Type header, when present.

Value: string

View source

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