STRUCT

HaapiInsecureTransportRefusal

Contents

public struct HaapiInsecureTransportRefusal: Error, Equatable, Sendable

The cause of a request refused because mutual TLS is configured and the URL is not https. Nothing was sent.

Reported as HaapiError.invalidURLResponse with the error insecure_transport; a builder given mutual TLS and a non-https token endpoint throws the same error. Fix the configured URL; retrying gives the same result.

Properties

scheme

public let scheme: String

The scheme of the refused URL, for example http.

host

public let host: String

The host of the refused URL. The path and query are never kept.