feat(http): add support for blob as a response type (#10190)

This commit is contained in:
Damien Cassan
2016-07-21 22:44:38 +02:00
committed by Victor Berchet
parent db54a84d14
commit 76b8a49bfb
6 changed files with 36 additions and 11 deletions

View File

@ -67,8 +67,7 @@ export interface RequestArgs extends RequestOptionsArgs { url: string; }
* @experimental
*/
export type ResponseOptionsArgs = {
// TODO: Support Blob, JSON
body?: string | Object | FormData | ArrayBuffer; status?: number; statusText?: string;
body?: string | Object | FormData | ArrayBuffer | Blob; status?: number; statusText?: string;
headers?: Headers;
type?: ResponseType;
url?: string;