title: What's the server-side equivalent of $.ajax() in Google Apps Scripts?
body: <p>I want to perform an HTTP request from server-side code in a Google App Script with an <code>Authorization</code> header. Is there an App Script API for sending HTTP requests?</p>
  
  <p>What's the equivalent of this code in a Google Apps Script?</p>
  
  <pre><code> var api = "URL";
   $.ajax({
       type: 'GET',
       url: api,
       contentType: 'application/json',
       dataType:'json',
       data: {},
       beforeSend: function(xhr) {
           xhr.setRequestHeader('Authorization', makeBaseAuth('username', 'password'));
       }
  });
  </code></pre>