Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Net.​IWebProxy
Assembly: System.Net.Primitives
Provides the base interface for implementation of proxy access for the <see cref="T:System.Net.Http.HttpClient" /> class.
Properties
public
ICredentials
Credentials
The credentials to submit to the proxy server for authentication.
Methods
public
Uri
GetProxy​(Uri destination)
destination
A <see cref="T:System.Uri" /> that specifies the requested Internet resource.
Returns A <see cref="T:System.Uri" /> instance that contains the URI of the proxy used to contact <paramref name="destination" /> ; otherwise null or <paramref name="destination" /> itself.
Returns the URI of a proxy.
public
bool
IsBypassed​(Uri host)
host
The <see cref="T:System.Uri" /> of the host to check for proxy use.
Returns <see langword="true" /> if the proxy server should not be used for <paramref name="host" /> ; otherwise, <see langword="false" /> .
Indicates that the proxy should not be used for the specified host.