IHttpClient.cs 543 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Edge.Core.HttpClient
  7. {
  8. public interface IHttpClient
  9. {
  10. Task<HttpResponseMessage> PostAsync(string api, StringContent? parmaJson);
  11. Task<HttpResponseMessage> GetAsync(string api, Dictionary<string,string> parmas);
  12. Task<HttpResponseMessage> PutAsync(string api, StringContent? parmaJson);
  13. Task<HttpResponseMessage> DeleteAsync(string api, StringContent? parmaJson);
  14. }
  15. }