Skip to content

DownloadUrls

Namespace: Vercel.AI.GenerateText

public static class DownloadUrls

Rejects unsafe file URLs before a download starts. Maps to validateDownloadUrl.

Inheritance: object

View source

public static void ValidateDownloadUrl(string url)

Throws DownloadException when <code class=“paramref”>url</code> is not safe to download.

Parameters

Name Type Description
url string

View source

public static void ValidateDownloadUrl(Uri url)

Throws DownloadException when <code class=“paramref”>url</code> is not safe to download.

Parameters

Name Type Description
url Uri

View source

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