Skip to content

@lancedb/lancedbDocs


@lancedb/lancedb / NativeJsHeaderProvider

Class: NativeJsHeaderProvider

JavaScript HeaderProvider implementation that wraps a JavaScript callback. This is the only native header provider - all header provider implementations should provide a JavaScript function that returns headers.

Constructors

new NativeJsHeaderProvider()

new NativeJsHeaderProvider(getHeadersCallback): NativeJsHeaderProvider

Create a new JsHeaderProvider from a JavaScript callback

Parameters

  • getHeadersCallback

Returns

NativeJsHeaderProvider