diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/UnityWebRequestException.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/UnityWebRequestException.cs index 9a164ab..2386a74 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/UnityWebRequestException.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/UnityWebRequestException.cs @@ -1,6 +1,7 @@ #if ENABLE_UNITYWEBREQUEST using System; +using System.Collections.Generic; using UnityEngine.Networking; namespace Cysharp.Threading.Tasks @@ -17,6 +18,7 @@ namespace Cysharp.Threading.Tasks public string Error { get; } public string Text { get; } public long ResponseCode { get; } + public Dictionary ResponseHeaders { get; } string msg; @@ -38,6 +40,7 @@ namespace Cysharp.Threading.Tasks this.Text = dhb.text; } } + this.ResponseHeaders = unityWebRequest.GetResponseHeaders(); } public override string Message diff --git a/src/UniTask/Assets/Scenes/SandboxMain.cs b/src/UniTask/Assets/Scenes/SandboxMain.cs index 0db724d..1d9c8d0 100644 --- a/src/UniTask/Assets/Scenes/SandboxMain.cs +++ b/src/UniTask/Assets/Scenes/SandboxMain.cs @@ -577,8 +577,8 @@ public class SandboxMain : MonoBehaviour StartCoroutine(LastYieldCore()); Debug.Log("BEFORE:" + Time.frameCount); - - await UniTask.Yield(PlayerLoopTiming.LastTimeUpdate); + + // await UniTask.Yield(PlayerLoopTiming.LastTimeUpdate); Debug.Log("AFTER:" + Time.frameCount); }));