@stemy/ngx-utils 19.7.21 → 19.7.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3145,6 +3145,9 @@ class RequestBag {
|
|
|
3145
3145
|
}
|
|
3146
3146
|
this.headers[name] = value;
|
|
3147
3147
|
}
|
|
3148
|
+
getHeader(name) {
|
|
3149
|
+
return String(this.headers[name] || "");
|
|
3150
|
+
}
|
|
3148
3151
|
setParam(name, value) {
|
|
3149
3152
|
if (value === undefined) {
|
|
3150
3153
|
delete this.params[name];
|
|
@@ -3174,6 +3177,9 @@ class BaseHttpClient extends HttpClient {
|
|
|
3174
3177
|
setHeader(name, value) {
|
|
3175
3178
|
this.bag.setHeader(name, value);
|
|
3176
3179
|
}
|
|
3180
|
+
getHeader(name) {
|
|
3181
|
+
return this.bag.getHeader(name);
|
|
3182
|
+
}
|
|
3177
3183
|
setParam(name, value) {
|
|
3178
3184
|
this.bag.setParam(name, value);
|
|
3179
3185
|
}
|