Internal transport request/response types (simple and testable).

interface TransportRequest {
    baseUrl?: string;
    body?: string;
    headers?: Record<string, string>;
    method: "GET" | "POST";
    path: string;
    payload?: unknown;
    socketPath?: string;
    timeoutMs: number;
}

Properties

baseUrl?: string

If HTTP(S) is used.

body?: string

Serialized payload body if already encoded.

headers?: Record<string, string>
method: "GET" | "POST"
path: string
payload?: unknown
socketPath?: string

If UDS is used.

timeoutMs: number