1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #if !BESTHTTP_DISABLE_PROXY
- using System;
- using BestHTTP.Authentication;
- namespace BestHTTP
- {
- public sealed class HTTPProxy
- {
-
-
-
- public Uri Address { get; set; }
-
-
-
- public Credentials Credentials { get; set; }
-
-
-
- public bool IsTransparent { get; set; }
-
-
-
- public bool SendWholeUri { get; set; }
-
-
-
- public bool NonTransparentForHTTPS { get; set; }
- public HTTPProxy(Uri address)
- :this(address, null, false)
- {}
- public HTTPProxy(Uri address, Credentials credentials)
- :this(address, credentials, false)
- {}
- public HTTPProxy(Uri address, Credentials credentials, bool isTransparent)
- :this(address, credentials, isTransparent, true)
- { }
- public HTTPProxy(Uri address, Credentials credentials, bool isTransparent, bool sendWholeUri)
- : this(address, credentials, isTransparent, true, true)
- { }
- public HTTPProxy(Uri address, Credentials credentials, bool isTransparent, bool sendWholeUri, bool nonTransparentForHTTPS)
- {
- this.Address = address;
- this.Credentials = credentials;
- this.IsTransparent = isTransparent;
- this.SendWholeUri = sendWholeUri;
- this.NonTransparentForHTTPS = nonTransparentForHTTPS;
- }
- }
- }
- #endif
|