Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
34 lines (25 sloc) 1.56 KB
using System;
using System.Collections.Generic;
using System.IO;
namespace ServiceStack
{
public interface IRestClient : IRestClientSync
{
void AddHeader(string name, string value);
void ClearCookies();
Dictionary<string, string> GetCookieValues();
void SetCookie(string name, string value, TimeSpan? expiresIn = null);
TResponse Get<TResponse>(string relativeOrAbsoluteUrl);
IEnumerable<TResponse> GetLazy<TResponse>(IReturn<QueryResponse<TResponse>> queryDto);
TResponse Delete<TResponse>(string relativeOrAbsoluteUrl);
TResponse Post<TResponse>(string relativeOrAbsoluteUrl, object request);
TResponse Put<TResponse>(string relativeOrAbsoluteUrl, object requestDto);
TResponse Patch<TResponse>(string relativeOrAbsoluteUrl, object requestDto);
TResponse Send<TResponse>(string httpMethod, string relativeOrAbsoluteUrl, object request);
TResponse PostFile<TResponse>(string relativeOrAbsoluteUrl, Stream fileToUpload, string fileName, string mimeType);
TResponse PostFileWithRequest<TResponse>(Stream fileToUpload, string fileName, object request, string fieldName = "upload");
TResponse PostFileWithRequest<TResponse>(string relativeOrAbsoluteUrl, Stream fileToUpload, string fileName, object request, string fieldName = "upload");
TResponse PostFilesWithRequest<TResponse>(object request, IEnumerable<UploadFile> files);
TResponse PostFilesWithRequest<TResponse>(string relativeOrAbsoluteUrl, object request, IEnumerable<UploadFile> files);
}
}
You can’t perform that action at this time.