laatzen/LaaProductionWeb/LaaProduction.Http/Interfaces/IHttpClient.cs

32 lines
822 B
C#

namespace LaaProduction.Http.Interfaces
{
public interface IHttpClient
{
void BaseURL(string baseURL);
HttpResponse<T> DELETE<T>(string uri);
HttpResponse<T> DELETE<T>(string uri, string bearer);
HttpResponse<T> GET<T>(string uri);
HttpResponse<T> GET<T>(string uri, string bearer);
HttpResponse<T> POST<T>(string uri);
HttpResponse<T> POST<T>(string uri, object body);
HttpResponse<T> POST<T>(string uri, string bearer);
HttpResponse<T> POST<T>(string uri, string bearer, object body);
HttpResponse<T> PUT<T>(string uri);
HttpResponse<T> PUT<T>(string uri, object body);
HttpResponse<T> PUT<T>(string uri, string bearer);
HttpResponse<T> PUT<T>(string uri, string bearer, object body);
}
}