HttpClientOptions
Namespace: IotaSdk
How the SDK should build the HTTP client backing a connection.
public record class HttpClientOptions : System.IEquatable`1[[IotaSdk.HttpClientOptions, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → HttpClientOptions
Implements IEquatable<HttpClientOptions>
Attributes NullableContextAttribute, NullableAttribute
Properties
ExtraRootCertificates
Additional DER-encoded CA certificates to trust, on top of the platform trust store and the bundled roots.
public Byte[][] ExtraRootCertificates { get; init; }
Property Value
ExcludePlatformRoots
Ignore the platform trust store, trusting only the bundled roots and
extra_root_certificates. Combined with exclude_bundled_roots, only
extra_root_certificates is trusted, which must then be non-empty.
public bool ExcludePlatformRoots { get; init; }
Property Value
ExcludeBundledRoots
Ignore the bundled Mozilla roots, trusting only the platform trust store and
extra_root_certificates. Combined with exclude_platform_roots, only
extra_root_certificates is trusted, which must then be non-empty.
public bool ExcludeBundledRoots { get; init; }
Property Value
TimeoutMs
Total request timeout in milliseconds. None leaves it unbounded.
public ulong? TimeoutMs { get; init; }
Property Value
UserAgent
Replaces the User-Agent the bindings would otherwise send.
public string? UserAgent { get; init; }
Property Value
Constructors
HttpClientOptions(Byte[][], Boolean, Boolean, UInt64?, String)
How the SDK should build the HTTP client backing a connection.
public HttpClientOptions(Byte[][] ExtraRootCertificates = null, bool ExcludePlatformRoots = false, bool ExcludeBundledRoots = false, ulong? TimeoutMs = null, string? UserAgent = null)
Parameters
ExtraRootCertificates Byte[][]
Additional DER-encoded CA certificates to trust, on top of the platform trust store and the
bundled roots.
ExcludePlatformRoots Boolean
Ignore the platform trust store, trusting only the bundled roots and
extra_root_certificates. Combined with exclude_bundled_roots, only
extra_root_certificates is trusted, which must then be non-empty.
ExcludeBundledRoots Boolean
Ignore the bundled Mozilla roots, trusting only the platform trust store and
extra_root_certificates. Combined with exclude_platform_roots, only
extra_root_certificates is trusted, which must then be non-empty.
TimeoutMs UInt64?
Total request timeout in milliseconds. None leaves it unbounded.
UserAgent String?
Replaces the User-Agent the bindings would otherwise send.