HpResponse
- whenever you fetch a request using http-pro you will get a response which will have following properties.
- all the properties of javascript Response object.
data: response data sent by the server.note
By default http-pro assumes that it will get json data from server but if you want change this behaviour, add a desired value in responseType property of HttpOptions.
export interface HpResponse<ResponseData extends any> extends Response {
data: ResponseData;
}