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

import Foundation

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