Socks5hHttpConnectOptions
Defined in: src/client/types.ts:96
Options for the Node-only httpConnectSocks5h constructor.
Extends
Section titled “Extends”Omit<HttpConnectOptions,"fetch">
Properties
Section titled “Properties”acceptedMaxResponseBytes?
Section titled “acceptedMaxResponseBytes?”optional acceptedMaxResponseBytes?: number;Defined in: src/client/types.ts:39
Decoded response bytes accepted by this client and advertised on every HTTP request. Minimum 64 KiB. Defaults to 64 MiB in browser/workerd builds and 256 MiB in native builds.
Inherited from
Section titled “Inherited from”HttpConnectOptions.acceptedMaxResponseBytes
authorization?
Section titled “authorization?”optional authorization?: string;Defined in: src/client/types.ts:26
Authorization header value (e.g. “Bearer
Inherited from
Section titled “Inherited from”HttpConnectOptions.authorization
compressionLevel?
Section titled “compressionLevel?”optional compressionLevel?: number;Defined in: src/client/types.ts:24
When set, request bodies are zstd-compressed at this level and Accept-Encoding: zstd is sent. Omit to disable compression.
Inherited from
Section titled “Inherited from”HttpConnectOptions.compressionLevel
connectTimeoutMs?
Section titled “connectTimeoutMs?”optional connectTimeoutMs?: number;Defined in: src/client/types.ts:98
One deadline for each proxy TCP setup, SOCKS5 negotiation, and TLS handshake. Default: 5000 ms.
description?
Section titled “description?”optional description?: ServiceDescription;Defined in: src/client/types.ts:18
Statically declared service description. When supplied, the client uses
these method and stream schemas directly and does not call __describe__.
This is required for services that intentionally expose only their
declared RPC surface and for exact exchange input schemas that cannot be
recovered by inspecting runtime values.
Inherited from
Section titled “Inherited from”HttpConnectOptions.description
externalLocation?
Section titled “externalLocation?”optional externalLocation?: ExternalLocationConfig;Defined in: src/client/types.ts:28
External storage config for resolving externalized batches.
Inherited from
Section titled “Inherited from”HttpConnectOptions.externalLocation
maxResponseBytes?
Section titled “maxResponseBytes?”optional maxResponseBytes?: number;Defined in: src/client/types.ts:102
Maximum buffered HTTP response, including headers. Default: 268435456 bytes.
maxResponseHeaderBytes?
Section titled “maxResponseHeaderBytes?”optional maxResponseHeaderBytes?: number;Defined in: src/client/types.ts:104
Maximum HTTP response-header bytes within maxResponseBytes. Default: 65536 bytes.
onLog?
Section titled “onLog?”optional onLog?: (msg) => void;Defined in: src/client/types.ts:22
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
Inherited from
Section titled “Inherited from”prefix?
Section titled “prefix?”optional prefix?: string;Defined in: src/client/types.ts:20
Route prefix the server mounts its methods under (e.g. /api). Trailing slashes are stripped. Defaults to no prefix.
Inherited from
Section titled “Inherited from”requestTimeoutMs?
Section titled “requestTimeoutMs?”optional requestTimeoutMs?: number;Defined in: src/client/types.ts:100
Total deadline for one HTTP request, including setup and response. Default: 300000 ms.
signal?
Section titled “signal?”optional signal?: AbortSignal;Defined in: src/client/types.ts:106
Cancels HTTP requests and any in-progress proxy setup.
