Domain Detective

API Reference

Class

DnsJson

Namespace DnsClientX

Provides JSON serialization helpers used by DNS over HTTPS implementations.

Inheritance

  • Object
  • DnsJson

Methods

Deserialize``1(System.Net.Http.HttpResponseMessage response, System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0} debug, System.Boolean typeInfo) #

Deserialize a JSON HTTP response into a given type.

Type Parameters

T
The type to deserialize into.

Parameters

response System.Net.Http.HttpResponseMessage required
The HTTP response message with JSON as a body.
debug System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0} required
Whether to print the JSON data to the console.
typeInfo System.Boolean required
Source generated metadata for the target type.
Serialize``1(``0 value, System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0} typeInfo) #

Serializes the specified value using pre-configured JSON options.

Type Parameters

T
Type of the value to serialize.

Parameters

value ``0 required
Value to serialize.
typeInfo System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0} required
Source generated metadata for the payload type.

Returns

Serialized JSON string.

UrlEncode(System.String value) #

Encode URL

Parameters

value System.String required
The value.
{{ include "footer" }}