20 lines
527 B
C#

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