C# Класс NuGet.RequestHelper

This class is used to keep sending requests until a response code that doesn't require authentication happens or if the request requires authentication and the user has stopped trying to enter them (i.e. they hit cancel when they are prompted).
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetResponse ( WebResponse response ) : IHttpWebResponse
GetResponse ( Func createRequest, Action prepareRequest, IProxyCache proxyCache, ICredentialCache credentialCache, ICredentialProvider credentialProvider ) : WebResponse

Keeps sending requests until a response code that doesn't require authentication happens or if the request requires authentication and the user has stopped trying to enter them (i.e. they hit cancel when they are prompted).

IsAuthenticationResponse ( IHttpWebResponse response ) : bool
SetKeepAliveHeaders ( HttpWebRequest request, IHttpWebResponse previousResponse ) : void