OpenParking Documentation Beta

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

public func get(url: URL, headers: [String: String]? = nil, session: URLSession = .shared) throws -> (Data, HTTPURLResponse)

Send a synchronous GET request to a specified URL with optional headers. Encountered errors will be thrown directly.