/// <summary> /// Begins the Http request /// </summary> /// <param name="url"></param> /// <returns></returns> public UnityTask PostAsync(string url) { var state = new UnityTask(); TaskManager.StartRoutine(PostAsync(state.FromJsonResponse(), url, null)); return(state); }
/// <summary> /// Begins the Http request /// </summary> /// <param name="url"></param> /// <param name="content"></param> /// <returns></returns> public UnityTask <T> PostAsync <T>(string url, string content) { var state = new UnityTask <T>(); TaskManager.StartRoutine(PostAsync(state.FromJsonResponse(), url, content)); return(state); }
/// <summary> /// Begins the Http request /// </summary> /// <param name="url"></param> /// <returns></returns> public UnityTask <T> GetAsync <T>(string url) { var state = new UnityTask <T>(); TaskManager.StartRoutine(GetAsync(state.FromJsonResponse(), url)); return(state); }