C# Класс Swensen.Ior.Core.IorClient

A light wrapper around our underlying http client.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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