MCPcopy
hub / github.com/vpulim/node-soap / constructor

Method constructor

src/security/BasicAuthSecurity.ts:9–14  ·  view source on GitHub ↗
(username: string, password: string, defaults?: any)

Source from the content-addressed store, hash-verified

7 private defaults;
8
9 constructor(username: string, password: string, defaults?: any) {
10 this._username = username;
11 this._password = password;
12 this.defaults = {};
13 merge(this.defaults, defaults);
14 }
15
16 public addHeaders(headers: IHeaders): void {
17 headers.Authorization = 'Basic ' + Buffer.from(this._username + ':' + this._password || '').toString('base64');

Callers

nothing calls this directly

Calls 1

mergeFunction · 0.90

Tested by

no test coverage detected