C# 클래스 Swensen.Ior.Core.IorClient

A light wrapper around our underlying http client.
파일 보기 프로젝트 열기: SwensenSoftware/im-only-resting 1 사용 예제들

공개 메소드들

메소드 설명
Base64EncodeUrlUserInfo ( Uri uri ) : string

Url decodes the Url.UserInfo then encodes it as base64 string from its ASCII bytes.

ExecuteAsync ( RequestModel requestModel, Action callback ) : CancellationTokenSource

Execute a request for the given requestModel asynchronously, executing the given callback upon completions other than cancellations (gui updates for cancellation should be done at point of cancellation).

GetEncodedBytes ( string content, string charset, bool includeUtf8Bom ) : byte[]
IorClient ( string defaultRequestContentType, string proxyServer, bool includeUtf8Bom, bool followRedirects, bool enableAutomaticContentDecompression ) : System

메소드 상세

Base64EncodeUrlUserInfo() 공개 정적인 메소드

Url decodes the Url.UserInfo then encodes it as base64 string from its ASCII bytes.
public static Base64EncodeUrlUserInfo ( Uri uri ) : string
uri System.Uri
리턴 string

ExecuteAsync() 공개 메소드

Execute a request for the given requestModel asynchronously, executing the given callback upon completions other than cancellations (gui updates for cancellation should be done at point of cancellation).
public ExecuteAsync ( RequestModel requestModel, Action callback ) : CancellationTokenSource
requestModel RequestModel
callback Action
리턴 System.Threading.CancellationTokenSource

GetEncodedBytes() 공개 정적인 메소드

public static GetEncodedBytes ( string content, string charset, bool includeUtf8Bom ) : byte[]
content string
charset string
includeUtf8Bom bool
리턴 byte[]

IorClient() 공개 메소드

public IorClient ( string defaultRequestContentType, string proxyServer, bool includeUtf8Bom, bool followRedirects, bool enableAutomaticContentDecompression ) : System
defaultRequestContentType string
proxyServer string
includeUtf8Bom bool
followRedirects bool
enableAutomaticContentDecompression bool
리턴 System