IHttpRestClientAsync
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IHttpRestClientAsync : IRestClientAsync, IServiceClientCommon, IDisposable
Methods
GetAsync<TResponse>(String, CancellationToken)
View Source
Declaration
Task<TResponse> GetAsync<TResponse>(string relativeOrAbsoluteUrl, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
System.String | relativeOrAbsoluteUrl |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
DeleteAsync<TResponse>(String, CancellationToken)
View Source
Declaration
Task<TResponse> DeleteAsync<TResponse>(string relativeOrAbsoluteUrl, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
System.String | relativeOrAbsoluteUrl |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PostAsync<TResponse>(String, Object, CancellationToken)
View Source
Declaration
Task<TResponse> PostAsync<TResponse>(string relativeOrAbsoluteUrl, object request, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
System.String | relativeOrAbsoluteUrl |
System.Object | request |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PutAsync<TResponse>(String, Object, CancellationToken)
View Source
Declaration
Task<TResponse> PutAsync<TResponse>(string relativeOrAbsoluteUrl, object request, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
System.String | relativeOrAbsoluteUrl |
System.Object | request |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
CustomMethodAsync<TResponse>(String, String, Object, CancellationToken)
View Source
Declaration
Task<TResponse> CustomMethodAsync<TResponse>(string httpVerb, string relativeOrAbsoluteUrl, object request, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
System.String | httpVerb |
System.String | relativeOrAbsoluteUrl |
System.Object | request |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
SendAsync<TResponse>(String, String, Object, CancellationToken)
View Source
Declaration
Task<TResponse> SendAsync<TResponse>(string httpMethod, string absoluteUrl, object request, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
System.String | httpMethod |
System.String | absoluteUrl |
System.Object | request |
System.Threading.CancellationToken | token |
Type Parameters
TResponse