OpenParking Documentation Beta

Function get(url:​headers:​session:​completion:​)

public func get(url: URL, headers: [String: String]? = nil, session: URLSession = .shared, completion: @escaping (Result<(Data, HTTPURLResponse), OpenParkingError>) -> Void)

Send an asynchronous GET request to a specified URL with optional headers.