forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIHttpRestClientAsync.cs
More file actions
15 lines (14 loc) · 918 Bytes
/
IHttpRestClientAsync.cs
File metadata and controls
15 lines (14 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System.Threading;
using System.Threading.Tasks;
namespace ServiceStack
{
public interface IHttpRestClientAsync : IRestClientAsync
{
Task<TResponse> GetAsync<TResponse>(string relativeOrAbsoluteUrl, CancellationToken token = default);
Task<TResponse> DeleteAsync<TResponse>(string relativeOrAbsoluteUrl, CancellationToken token = default);
Task<TResponse> PostAsync<TResponse>(string relativeOrAbsoluteUrl, object request, CancellationToken token = default);
Task<TResponse> PutAsync<TResponse>(string relativeOrAbsoluteUrl, object request, CancellationToken token = default);
Task<TResponse> CustomMethodAsync<TResponse>(string httpVerb, string relativeOrAbsoluteUrl, object request, CancellationToken token = default);
Task<TResponse> SendAsync<TResponse>(string httpMethod, string absoluteUrl, object request, CancellationToken token = default);
}
}