Files
coplaydev--unity-mcp/MCPForUnity/Editor/Services/AssetGen/Http/IHttpTransport.cs
T
2026-07-13 12:49:17 +08:00

16 lines
531 B
C#

using System.Threading;
using System.Threading.Tasks;
namespace MCPForUnity.Editor.Services.AssetGen.Http
{
/// <summary>
/// The HTTP seam that provider adapters depend on. Production uses
/// <see cref="UnityWebRequestTransport"/>; tests inject <see cref="FakeHttpTransport"/> so
/// adapter request/response shaping can be verified without touching the network.
/// </summary>
public interface IHttpTransport
{
Task<HttpResult> SendAsync(HttpRequestSpec spec, CancellationToken ct);
}
}