Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ServiceStack/src/ServiceStack.Interfaces/IRestClient.cs
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (25 sloc)
1.56 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
} |