C# Класс Microsoft.AspNet.SignalR.Client.Http.DefaultHttpClient

Наследование: IHttpClient
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DefaultHttpClient ( ) : System
Get ( string url, Action prepareRequest, bool isLongRunning ) : Task

Makes an asynchronous http GET request to the specified url.

Initialize ( IConnection connection ) : void
Post ( string url, Action prepareRequest, string>.IDictionary postData, bool isLongRunning ) : Task

Makes an asynchronous http POST request to the specified url.

Защищенные методы

Метод Описание
CreateHandler ( ) : HttpMessageHandler

Приватные методы

Метод Описание
GetHttpClient ( bool isLongRunning ) : HttpClient

Returns the appropriate client based on whether it is a long running request

PrepareClientRequest ( HttpWebRequestWrapper req ) : void

Adds certificates, credentials, proxies and cookies to the request

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

CreateHandler() защищенный Метод

protected CreateHandler ( ) : HttpMessageHandler
Результат System.Net.Http.HttpMessageHandler

DefaultHttpClient() публичный Метод

public DefaultHttpClient ( ) : System
Результат System

Get() публичный Метод

Makes an asynchronous http GET request to the specified url.
public Get ( string url, Action prepareRequest, bool isLongRunning ) : Task
url string The url to send the request to.
prepareRequest Action A callback that initializes the request with default values.
isLongRunning bool Indicates whether the request is long running
Результат Task

Initialize() публичный Метод

public Initialize ( IConnection connection ) : void
connection IConnection
Результат void

Post() публичный Метод

Makes an asynchronous http POST request to the specified url.
public Post ( string url, Action prepareRequest, string>.IDictionary postData, bool isLongRunning ) : Task
url string The url to send the request to.
prepareRequest Action A callback that initializes the request with default values.
postData string>.IDictionary form url encoded data.
isLongRunning bool Indicates whether the request is long running
Результат Task