We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc8a0f9 commit d5f6b83Copy full SHA for d5f6b83
src/index.ts
@@ -62,6 +62,7 @@ export type ConnectionOptions = {
62
readonly session?: Session;
63
readonly extraCredential?: ExtraCredential;
64
readonly ssl?: SecureContextOptions;
65
+ extraHeaders?: RequestHeaders;
66
};
67
68
export type QueryStage = {
@@ -192,6 +193,7 @@ class Client {
192
193
[TRINO_EXTRA_CREDENTIAL_HEADER]: encodeAsString(
194
options.extraCredential ?? {}
195
),
196
+ ...(options.extraHeaders ?? {}),
197
198
199
if (options.auth && options.auth.type === 'basic') {
0 commit comments