1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-15 18:54:36 +00:00

chore(request-client): rename method

This commit is contained in:
Krishna Acondy
2021-09-09 07:41:20 +01:00
parent 9c099b899c
commit 2ccc7b5499

View File

@@ -55,11 +55,11 @@ export class RequestClient implements HttpClient {
protected httpClient!: AxiosInstance
constructor(protected baseUrl: string, allowInsecure = false) {
this.instantiateHttpClient(baseUrl, allowInsecure)
this.createHttpClient(baseUrl, allowInsecure)
}
public setConfig(baseUrl: string, allowInsecure = false) {
this.instantiateHttpClient(baseUrl, allowInsecure)
this.createHttpClient(baseUrl, allowInsecure)
}
public getCsrfToken(type: 'general' | 'file' = 'general') {
@@ -507,7 +507,7 @@ export class RequestClient implements HttpClient {
return responseToReturn
}
private instantiateHttpClient(baseUrl: string, allowInsecure = false) {
private createHttpClient(baseUrl: string, allowInsecure = false) {
const https = require('https')
if (allowInsecure && https.Agent) {
this.httpClient = axios.create({