OpenParking Documentation Beta

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

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

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