using System; using System.Collections.Generic; using System.Threading.Tasks; using UnityEngine.Networking; namespace Unity.Services.Lobbies.Http { public interface IHttpClient { void Get(string url, Dictionary headers, Action onCompleted, int requestTimeout = 10); void Delete(string url, Dictionary headers, Action onCompleted, int requestTimeout = 10); void Post(string url, byte[] body, Dictionary headers, Action onCompleted, int requestTimeout = 10); void Put(string url, byte[] body, Dictionary headers, Action onCompleted, int requestTimeout = 10); void MakeRequest(string method, string url, byte[] body, Dictionary headers, Action onCompleted, int requestTimeout = 10); Task MakeRequestAsync(string method, string url, byte[] body, Dictionary headers, int requestTimeout); Task MakeRequestAsync(string method, string url, List body, Dictionary headers, int requestTimeout, string boundary = null); } }