OpenParking Documentation Beta

Function post(url:​headers:​body:​session:​completion:​)

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

Send an asynchronous POST request to a specified URL with optional headers and body.