title: AngularJS and Digest HTTP Authentication
body: <p>I am trying to implement the digest auth algorithm in angular. However, the lack of knowledge about the requests angular will send stops me from perceiving that goal.
  My approach is to transform the request via the </p>
  
  <pre><code>$httpProvider.defaults.transformRequest
  </code></pre>
  
  <p>route. But the functions I provide </p>
  
  <pre><code>function (data, headersGetter)
  </code></pre>
  
  <p>obviously is not provided with any knowledge about the upcoming request. Since I have no knowledge about the request URI (but especially the method, such as PUT, GET etc.)at all it is impossible to calculate a correct digest hash. </p>
  
  <p><strong>Does anybody know how a transformRequest function can get the URI and the method on which the request is targeted ?</strong></p>