Files
YooAsset/Assets/YooAsset/Runtime/DownloadSystem/Services/UnityWebBackend/UnityWebRequestCreator.cs
2026-01-27 17:21:26 +08:00

17 lines
611 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using UnityEngine.Networking;
namespace YooAsset
{
/// <summary>
/// 自定义 UnityWebRequest 创建委托
/// </summary>
/// <remarks>
/// 用于自定义 UnityWebRequest 的创建方式,例如添加证书验证、代理设置等。
/// 通过 UnityWebRequestBackend 构造函数传入。
/// </remarks>
/// <param name="url">请求地址</param>
/// <param name="method">HTTP 方法(如 GET、HEAD</param>
/// <returns>自定义配置的 UnityWebRequest 实例</returns>
public delegate UnityWebRequest UnityWebRequestCreator(string url, string method);
}