DownloadResult
Namespace: Vercel.AI.Util
public sealed class DownloadResultBytes and media type returned by Download.GetAsync.
Inheritance: object
Constructors
Section titled “Constructors”DownloadResult(byte[]?, string?)
Section titled “DownloadResult(byte[]?, string?)”public DownloadResult(byte[]? data, string? mediaType)Creates a download result.
Parameters
| Name | Type | Description |
|---|---|---|
data |
byte[] | |
mediaType |
string |
Properties
Section titled “Properties”public byte[] Data { get; }Response body.
Value: byte[]
MediaType
Section titled “MediaType”public string? MediaType { get; }Content-Type header, when present.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product