From 6a54273001b04f742c3dc6a46142955b68b9b737 Mon Sep 17 00:00:00 2001 From: ramonornela Date: Tue, 21 Feb 2017 11:32:52 -0300 Subject: [PATCH] feat(request): implements getDefaultOptions() --- src/providers/request.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/providers/request.ts b/src/providers/request.ts index d1725a0..2743920 100644 --- a/src/providers/request.ts +++ b/src/providers/request.ts @@ -47,8 +47,13 @@ export class Request { return new RequestAngular(options); } - setDefaultOptions(options: any) { + setDefaultOptions(options: any): this { this.defaultOptions = options; + return this; + } + + getDefaultOptions() { + return this.defaultOptions; } protected serializeParams(id: string, options: any, params: Object) {