QuasiEndpoint
Written by
Updated at May 28, 2026
public struct QuasiEndpoint
HTTP endpoint for overriding the telemetry destination address.
Contents
Discussion
It is used in Environment/set(telemetryEndpoint:) to replace the default telemetry endpoint with a custom one.
Initializers
public init(
url: URL,
httpMethod: String = "POST",
httpHeaders: [String: String] = ["Content-Type": "application/json"]
)
It creates an HTTP endpoint.
Examples
let endpoint = QuasiEndpoint(url: URL(string: "https://my-telemetry.example.com/log")!)
Environment.set(telemetryEndpoint: endpoint)