feat(http): add support for ArrayBuffer

Add the buffer option to store response in ArrayBuffer
Improve the interface to get back response independently of the buffer type
This commit is contained in:
Damien Cassan
2016-02-24 16:37:18 +01:00
committed by Jeff Cross
parent 0ccb6e0dfc
commit 1266460386
12 changed files with 218 additions and 29 deletions

View File

@ -61,3 +61,12 @@ export enum ContentType {
BLOB,
ARRAY_BUFFER
}
/*
* Define which buffer to use to store the response
*/
export enum ResponseBuffer {
ArrayBuffer,
Json,
Text
}