angular.dart icon indicating copy to clipboard operation
angular.dart copied to clipboard

Update angular-core.HttpSupport to document setting responseType for http service requests

Open bgourlie opened this issue 11 years ago • 4 comments

There's no way (that I know of) to use the http service to retrieve binary data. Typically, this is accomplished by setting the responseType property on dom.HttpRequest to "arraybuffer". The http service does not expose the responseType property.

bgourlie avatar Jul 18 '14 18:07 bgourlie

It actually does --- you can put responseType in your HTTP configuration object (and $httpBackend will try to apply it to the XHR object)

caitp avatar Jul 18 '14 19:07 caitp

Ah, good to know! Thanks @caitp!

bgourlie avatar Jul 18 '14 19:07 bgourlie

you know what, I totally assumed this was the angularJS repo and not angular.dart. I have no idea if that works here, hah :) Need to read my email more closely!

caitp avatar Jul 18 '14 19:07 caitp

It does work. But you would need to read the code (or try it) to know that it works.

Changing title to make it clear that this is a doc bug. https://docs.angulardart.org/#angular/angular-core.Http needs to be updated.

naomiblack avatar Jul 22 '14 15:07 naomiblack