Class ExternalProxy
An upstream proxy this proxy uses if any.
Implements
Inherited Members
Namespace: Titanium.Web.Proxy.Models
Assembly: Titanium.Web.Proxy.dll
Syntax
public class ExternalProxy : IExternalProxy
Constructors
| Edit this page View SourceExternalProxy()
Initializes a new instance of the ExternalProxy class.
Declaration
public ExternalProxy()
ExternalProxy(string, int)
Initializes a new instance of the ExternalProxy class.
Declaration
public ExternalProxy(string hostName, int port)
Parameters
| Type | Name | Description |
|---|---|---|
| string | hostName | Name of the host. |
| int | port | The port. |
ExternalProxy(string, int, string, string)
Initializes a new instance of the ExternalProxy class.
Declaration
public ExternalProxy(string hostName, int port, string userName, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| string | hostName | Name of the host. |
| int | port | The port. |
| string | userName | Name of the user. |
| string | password | The password. |
Properties
| Edit this page View SourceBypassLocalhost
Bypass this proxy for connections to localhost?
Declaration
public bool BypassLocalhost { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
HostName
Host name.
Declaration
public string HostName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NextHop
Optional next hop for an ordered two-hop HTTP upstream chain. See NextHop.
Declaration
public IExternalProxy? NextHop { get; set; }
Property Value
| Type | Description |
|---|---|
| IExternalProxy |
Password
Password.
Declaration
public string? Password { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Port
Port.
Declaration
public int Port { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ProxyDnsRequests
Declaration
public bool ProxyDnsRequests { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ProxyType
Declaration
public ExternalProxyType ProxyType { get; set; }
Property Value
| Type | Description |
|---|---|
| ExternalProxyType |
UseDefaultCredentials
Use default windows credentials?
Declaration
public bool UseDefaultCredentials { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
UserName
Username.
Declaration
public string? UserName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceToString()
returns data in Hostname:port format.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |