24 lines
696 B
C#

using System.Net;
namespace DigitalData.Core.Abstractions.Client
{
public interface IBaseHttpClientService
{
string Uri { get; init; }
CookieCollection GetCookies(string route = "");
Task<HttpResponseMessage> FetchAsync(
string? scheme = null,
int? port = null,
string? path = null,
Dictionary<string, string>? queryParams = null,
HttpMethod? method = null,
HttpContent? body = null,
Dictionary<string, string>? form = null,
Dictionary<string, string>? headers = null,
bool sendWithCookie = true,
bool saveCookie = true
);
}
}