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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user