1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-09 21:30:05 +00:00

feat(request-client): made verbose mode easier to configure

This commit is contained in:
Yury Shkoda
2023-07-31 16:34:09 +03:00
parent f1e1b33571
commit ea4b30d6ef
4 changed files with 35 additions and 6 deletions

View File

@@ -69,11 +69,14 @@ export class RequestClient implements HttpClient {
constructor(
protected baseUrl: string,
httpsAgentOptions?: https.AgentOptions,
requestsLimit?: number
requestsLimit?: number,
verboseMode?: boolean
) {
this.createHttpClient(baseUrl, httpsAgentOptions)
if (requestsLimit) this.requestsLimit = requestsLimit
if (verboseMode) this.enableVerboseMode()
}
public setConfig(baseUrl: string, httpsAgentOptions?: https.AgentOptions) {