summaryrefslogtreecommitdiffhomepage
path: root/ios/PacketTunnelCore/URLRequestProxy/URLRequestProxyProtocol.swift
blob: b848f48dde31198de6b34ec6f2e8992f924d2c9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//
//  URLRequestProxyProtocol.swift
//  PacketTunnelCore
//
//  Created by Jon Petersson on 2023-10-11.
//  Copyright © 2025 Mullvad VPN AB. All rights reserved.
//

import Foundation
import MullvadREST

public protocol URLRequestProxyProtocol {
    func sendRequest(_ proxyRequest: ProxyURLRequest, completionHandler: @escaping @Sendable (ProxyURLResponse) -> Void)
    func sendRequest(_ proxyRequest: ProxyURLRequest) async -> ProxyURLResponse
    func cancelRequest(identifier: UUID)
}