Show / Hide Table of Contents

Class DnsDelegatingHandler

Intercepts HTTP requests, resolving them to one or more IP addresses and making the request directly to the IP address with a host header.

Inheritance
Object
DnsDelegatingHandler
Namespace: Ae.Dns.Protocol
Assembly: Ae.Dns.Protocol.dll
Syntax
public sealed class DnsDelegatingHandler : DelegatingHandler

Constructors

| Improve this Doc View Source

DnsDelegatingHandler(IDnsClient, Boolean)

Create a new DnsDelegatingHandler using the specified IDnsClient, optionally using IPv6.

Declaration
public DnsDelegatingHandler(IDnsClient dnsClient, bool internetProtocolV4 = true)
Parameters
Type Name Description
IDnsClient dnsClient
Boolean internetProtocolV4

Methods

| Improve this Doc View Source

SendAsync(HttpRequestMessage, CancellationToken)

Declaration
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
Type Name Description
HttpRequestMessage request
CancellationToken cancellationToken
Returns
Type Description
Task<HttpResponseMessage>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX