title: Request http with NSMutableURLRequest / URLRequest
body: <p>What is the correct way to make a request to an api-rest?</p>
  
  <pre><code>let myUrl = URL(string: "https://myhost.com/test/wp-json/jwt-auth/v1/token")
  var request =  URLRequest(url:myUrl!)
  </code></pre>
  
  <p>o </p>
  
  <pre><code>let request = NSMutableURLRequest(url: NSURL(string: "https://myhost.com/test/wp-json/jwt-auth/v1/token")! as URL,
                                    cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
  </code></pre>
  
  <p>When should I use one or the other?</p>