HttpConnectOptions
Defined in: src/client/types.ts:5
Options for httpConnect, the HTTP-transport RPC client.
Properties
Section titled “Properties”authorization?
Section titled “authorization?”optional authorization?: string;Defined in: src/client/types.ts:13
Authorization header value (e.g. “Bearer
compressionLevel?
Section titled “compressionLevel?”optional compressionLevel?: number;Defined in: src/client/types.ts:11
When set, request bodies are zstd-compressed at this level and Accept-Encoding: zstd is sent. Omit to disable compression.
externalLocation?
Section titled “externalLocation?”optional externalLocation?: ExternalLocationConfig;Defined in: src/client/types.ts:15
External storage config for resolving externalized batches.
onLog?
Section titled “onLog?”optional onLog?: (msg) => void;Defined in: src/client/types.ts:9
Callback invoked for each log/error message the server emits during a request.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
msg | LogMessage |
Returns
Section titled “Returns”void
prefix?
Section titled “prefix?”optional prefix?: string;Defined in: src/client/types.ts:7
Route prefix the server mounts its methods under (e.g. /api). Trailing slashes are stripped. Defaults to no prefix.