title: How to add HTTP header to URL in Swift?
body: <p><strong>This is my header</strong></p>
  
  <p><img src="https://i.stack.imgur.com/YUvOA.png" alt="Screen Shot"></p>
  
  <p>I had already add those params to url, how to add the header with value "bearer" and api_key to url in swift</p>
  
  <pre><code> var urlComponents = URLComponents(string: "https://api.yelp.com/v3/businesses/search")!
  
      urlComponents.queryItems = [
          URLQueryItem(name: "query", value: "landmarks"),
          URLQueryItem(name: "ll", value: "\(latitude), \(longitude)"),
      ]
  </code></pre>