C# Класс Simple.Rest.Extensions.RestClientExtensions

Extensions to make RestClient even easier!
Показать файл Открыть проект

Открытые методы

Метод Описание
WithAnyEncoding ( this restClient ) : IRestClient

Adds both gzip & deflate encoding headers.

WithCookie ( this restClient, Cookie cookie ) : IRestClient

Add a cookie to the RestClient cookies..

WithCookie ( this restClient, string name, string value ) : IRestClient

Add a cookie to the RestClient cookies..

WithCredentials ( this restClient, ICredentials credentials ) : IRestClient

Adds the credentials to the RestClient header.

WithDeflateEncoding ( this restClient ) : IRestClient

Adds the deflate to the encoding header.

WithGzipEncoding ( this restClient ) : IRestClient

Adds the gzip to the encoding header.

Описание методов

WithAnyEncoding() публичный статический Метод

Adds both gzip & deflate encoding headers.
public static WithAnyEncoding ( this restClient ) : IRestClient
restClient this The RestClient interface.
Результат IRestClient

WithCookie() публичный статический Метод

Add a cookie to the RestClient cookies..
public static WithCookie ( this restClient, Cookie cookie ) : IRestClient
restClient this The RestClient interface.
cookie System.Net.Cookie The cookie to be added.
Результат IRestClient

WithCookie() публичный статический Метод

Add a cookie to the RestClient cookies..
public static WithCookie ( this restClient, string name, string value ) : IRestClient
restClient this The RestClient interface.
name string The name of the cookie to be added.
value string The value of the cookie to be added.
Результат IRestClient

WithCredentials() публичный статический Метод

Adds the credentials to the RestClient header.
public static WithCredentials ( this restClient, ICredentials credentials ) : IRestClient
restClient this The RestClient interface.
credentials ICredentials The credentials to be added.
Результат IRestClient

WithDeflateEncoding() публичный статический Метод

Adds the deflate to the encoding header.
public static WithDeflateEncoding ( this restClient ) : IRestClient
restClient this The RestClient interface.
Результат IRestClient

WithGzipEncoding() публичный статический Метод

Adds the gzip to the encoding header.
public static WithGzipEncoding ( this restClient ) : IRestClient
restClient this The RestClient interface.
Результат IRestClient