Refactor setter method

This commit is contained in:
Samir Nijenhuis
2019-02-28 11:50:30 +01:00
parent 2dd8bd93cd
commit 77321f5fa2

View File

@@ -131,14 +131,15 @@ export function init(
}
},
setAuthentication(name : string, value: string) : void {
renderedRequest.authentication[name] = value;
setAuthentication(name: string, value: string): void {
Object.assign(renderedRequest.authentication, {
[name]: value,
});
},
getAuthentication() : Object {
getAuthentication(): Object {
return renderedRequest.authentication;
}
},
// NOTE: For these to make sense, we'd need to account for cookies in the jar as well
// addCookie (name: string, value: string): void {}