Class WebProxyConfig
- Namespace
- Yarp.ReverseProxy.Configuration
- Assembly
- Yarp.ReverseProxy.dll
Config used to construct WebProxy instance.
public sealed record WebProxyConfig : IEquatable<WebProxyConfig>
- Inheritance
-
WebProxyConfig
- Implements
- Inherited Members
Constructors
WebProxyConfig()
public WebProxyConfig()
Properties
Address
The URI of the proxy server.
public Uri? Address { get; init; }
Property Value
- Uri
BypassOnLocal
true to bypass the proxy for local addresses; otherwise, false. If null, default value will be used: false
public bool? BypassOnLocal { get; init; }
Property Value
- bool?
UseDefaultCredentials
Controls whether the DefaultCredentials are sent with requests. If null, default value will be used: false
public bool? UseDefaultCredentials { get; init; }
Property Value
- bool?
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(WebProxyConfig?)
public bool Equals(WebProxyConfig? other)
Parameters
otherWebProxyConfig
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
<Clone>$()
public WebProxyConfig <Clone>$()
Returns
Operators
operator ==(WebProxyConfig?, WebProxyConfig?)
public static bool operator ==(WebProxyConfig? left, WebProxyConfig? right)
Parameters
leftWebProxyConfigrightWebProxyConfig
Returns
operator !=(WebProxyConfig?, WebProxyConfig?)
public static bool operator !=(WebProxyConfig? left, WebProxyConfig? right)
Parameters
leftWebProxyConfigrightWebProxyConfig