Table of Contents

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

obj object

Returns

bool

Equals(WebProxyConfig?)

public bool Equals(WebProxyConfig? other)

Parameters

other WebProxyConfig

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

<Clone>$()

public WebProxyConfig <Clone>$()

Returns

WebProxyConfig

Operators

operator ==(WebProxyConfig?, WebProxyConfig?)

public static bool operator ==(WebProxyConfig? left, WebProxyConfig? right)

Parameters

left WebProxyConfig
right WebProxyConfig

Returns

bool

operator !=(WebProxyConfig?, WebProxyConfig?)

public static bool operator !=(WebProxyConfig? left, WebProxyConfig? right)

Parameters

left WebProxyConfig
right WebProxyConfig

Returns

bool