Skip to content

feat: custom headers support#59

Merged
omgate234 merged 2 commits into
mainfrom
feat/custom-headers-support
Jun 1, 2026
Merged

feat: custom headers support#59
omgate234 merged 2 commits into
mainfrom
feat/custom-headers-support

Conversation

@omgate234
Copy link
Copy Markdown
Collaborator

Pull Request

Description:
Add support for passing arbitrary custom headers when constructing a Connection, bringing the Node SDK to parity with videodb-python's **kwargsx-* header behavior.

Changes:

  • HttpClient accepts a new optional 3rd argument options?: HttpClientOptions with a headers field; entries are auto-formatted to x-kebab-case and merged into the axios instance defaults alongside x-access-token and x-videodb-client.
  • Connection (and the inner VdbHttpClient) forward the new options argument through to HttpClient.
  • connect({ ... }) accepts a top-level headers field on ConnectionConfig and forwards it as options.headers to the new Connection signature.
  • No new runtime dependencies; legacy connect(apiKey, baseUrl) positional signature is unchanged.

Related Issues:

  • Closes #N/A

Checklist:

  • Code follows project coding standards
  • Tests have been added or updated
  • Code Review
  • Manual test after merge
  • All checks passed

@omgate234 omgate234 changed the title Feat/custom headers support feat: custom headers support Jun 1, 2026
@omgate234 omgate234 merged commit 9786fb8 into main Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant