Skip to content

Commit

Permalink
feat: optional httpsAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
amper-fb committed Jan 7, 2024
1 parent 4c1d3e1 commit c1bae00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ export class ApiClient {
baseURL: this.apiBaseUrl,
proxy: this.options?.proxy,
timeout: this.options?.timeoutInMs,
httpsAgent: this.options?.httpsAgent,
headers: {
"X-API-Key": this.authProvider.getApiKey(),
"User-Agent": this.getUserAgent()
}
},
});

if (options?.customAxiosOptions?.interceptors?.response) {
Expand Down
3 changes: 3 additions & 0 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ export interface SDKOptions {
/** Additional product identifier to be prepended to the User-Agent header */
userAgent?: string;

/** Replace default https agent */
httpsAgent?: any

/**
* Providing custom axios options including a response interceptor (https://axios-http.com/docs/interceptors)
*/
Expand Down

0 comments on commit c1bae00

Please sign in to comment.