title: Restangular - how to cancel/implement my own request
body: <p>I found a few examples of using <code>fullRequestInterceptor</code> and <code>httpConfig.timeout</code> to allow canceling requests in restangular.</p>
  
  <p><a href="https://github.com/mgonto/restangular/issues/520" rel="nofollow">example 1</a> | <a href="https://github.com/mgonto/restangular/issues/589" rel="nofollow">example 2</a></p>
  
  <p>this is how I'm adding the interceptor:</p>
  
  <pre><code>    app.run(function (Restangular, $q) {
          Restangular.addFullRequestInterceptor(function (element, operation, what, url, headers, params, httpConfig) {
  </code></pre>
  
  <p>I managed to abort the request by putting a resolved promise in timeout (results in an error being logged and the request goes out but is canceled), which is not what I want.</p>
  
  <p>What I'm trying to do - I want to make the AJAX request myself with my own requests and pass the result back to whatever component that used Restangular. Is this possible?</p>