feat(http): add support for new properties (#2135)

This commit is contained in:
Sefa Ilkimen 2018-03-21 21:30:06 +01:00
parent 4497e00670
commit c2a62cd3c8

View File

@ -6,14 +6,18 @@ export interface HTTPResponse {
* The status number of the response
*/
status: number;
/**
* The data that is in the response. This property usually exists when a promise returned by a request method resolves.
*/
data?: any;
/**
* The headers of the response
*/
headers: any;
/**
* The URL of the response. This property will be the final URL obtained after any redirects.
*/
url: string;
/**
* The data that is in the response. This property usually exists when a promise returned by a request method resolves.
*/
data?: any;
/**
* Error response from the server. This property usually exists when a promise returned by a request method rejects.
*/