DownloadUrls
Namespace: Vercel.AI.GenerateText
public static class DownloadUrlsRejects unsafe file URLs before a download starts. Maps to validateDownloadUrl.
Inheritance: object
Methods
Section titled “Methods”ValidateDownloadUrl(string)
Section titled “ValidateDownloadUrl(string)”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 |
ValidateDownloadUrl(Uri)
Section titled “ValidateDownloadUrl(Uri)”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 |
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product