34 lines
841 B
C#
34 lines
841 B
C#
namespace LaaProduction.Http.Interfaces
|
|
{
|
|
using System;
|
|
|
|
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);
|
|
}
|
|
}
|