21 lines
583 B
C#
21 lines
583 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,
|
|
Dictionary<string, string>? headers = null,
|
|
bool sendWithCookie = true,
|
|
bool saveCookie = true
|
|
);
|
|
}
|
|
} |