QuasiEndpoint
Written by
Updated at November 5, 2026
public struct QuasiEndpoint
HTTP endpoint for sending telemetry and performance data (perf events).
Contents
This page displays:
Description
Used in the set(telemetryEndpoint:) and set(perfEndpoint:) methods of the Environment structure for replacing standard endpoints with custom ones.
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)
let perfEndpoint = QuasiEndpoint(url: URL(string: "https://my-telemetry.example.com/perf")!)
Environment.set(perfEndpoint: perfEndpoint)