title: Swift: HTTP request with parameters in header
body: <p>i need to send an HTTP request, I can do that but my API in Backendless requires application-id and secret-key in HTTP Request Header. Can you help how to add it into my code? Thanks</p>
  
  <pre><code>let urlString = "https://api.backendless.com/v1/data/Pub"
      let session = NSURLSession.sharedSession()
      let url = NSURL(string: urlString)!
  
      session.dataTaskWithURL(url){(data: NSData?,response: NSURLResponse?, error: NSError?) -&gt; Void in
  
          if let responseData = data
          {
              do{
                  let json = try NSJSONSerialization.JSONObjectWithData(responseData, options: NSJSONReadingOptions.AllowFragments)
                  print(json)
              }catch{
                  print("Could not serialize")
              }
          }
  
      }.resume()
  </code></pre>