Hello Angulars,

In a restful webservice the e-tags that are returned on a GET request, can 
be used with an "If-Match" in PUT requests to do a conditional PUT request:
http://greenbytes.de/tech/webdav/draft-reschke-http-etag-on-write-latest.html

How can i setup the http "If-Match" header in a $resource PUT request?

In the transformRequest it seems possible to read headers, but how can i 
change/set the "If-Match" request header in the action itself?

Searching through the archives i found this unanswered question:
https://groups.google.com/forum/#!searchin/angular/put$20$24resource$20%22if-match%22/angular/qqubJUzHQjw/Iu7c4Mk-oxQJ

Is the $resource API is lacking the functionality to add/change http 
request headers or am i overlooking something?

Thanks in advance!
Best regards,
Sander Hahn

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to