constructor(response: IResponseObject, collection?: PureCollection, options?: IRequestOptions, overrideData?: PureModel |Array<PureModel>)
Creates a new
Response object instance. It needs to receive at lest the response object.
replaceData(data: PureModel): Response
Replace the response model with a different model. Used to replace a model while keeping the same reference. Mostly for internal use.
An model or an array of models received from the API
An error object received from the API
A Headers object returned from the API
A key/value object with custom headers sent to the server in the API call
HTTP response status