blob: 66b31f91937338383acefb7e89216ce93e19e45c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//
// ProxyConfigurationTesterProtocol.swift
// MullvadVPN
//
// Created by pronebird on 28/11/2023.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
import Foundation
import MullvadTypes
/// Type implementing access method proxy configuration testing.
protocol ProxyConfigurationTesterProtocol {
/// Start testing proxy configuration.
/// - Parameters:
/// - configuration: a proxy configuration.
/// - completion: a completion handler that receives `nil` upon success, otherwise the underlying error.
func start(configuration: PersistentAccessMethod, completion: @escaping @Sendable (Error?) -> Void)
/// Cancel testing proxy configuration.
func cancel()
}
|