C# 클래스 Simple.Rest.Extensions.RestClientExtensions

Extensions to make RestClient even easier!
파일 보기 프로젝트 열기: oriches/Simple.Rest

공개 메소드들

메소드 설명
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