I am using the following code to get data from an URL and later show it on swift. but i have the question if is possible to add Headers to the URL?
static private func createPDFLocalURL(urlString:String, fileName:String) -> FileManagementResponse {
let url = URL(string: "http://www.africau.edu/images/default/sample.pdf")
let pdfData = try? Data.init(contentsOf: url!)
//....
}