kinetex - v1.4.0
    Preparing search index...

    Function createTransport

    • Create the appropriate transport for the current runtime. Each call returns a fresh transport — the Kinetex client owns the lifetime.

      Parameters

      • OptionalfetchFn: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        }

        Custom fetch implementation.

          • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
          • Parameters

            • input: URL | RequestInfo
            • Optionalinit: RequestInit

            Returns Promise<Response>

          • (input: string | URL | Request, init?: RequestInit): Promise<Response>
          • Parameters

            • input: string | URL | Request
            • Optionalinit: RequestInit

            Returns Promise<Response>

      • preferHTTP2: boolean = true

        Whether to prefer HTTP/2 on Node.js.

      • OptionalsessionOptions: SessionPoolConfig

        HTTP/2 session pool options.

      • OptionaltransportOptions: Pick<FetchTransportOptions, "strict" | "onDroppedHeader" | "dispatcher"> & {
            ca?: string | string[];
            proxy?: ProxyConfig;
        }

        Header validation options (strict mode, dropped-header callback).

        • Optionalca?: string | string[]

          CA certificate(s) trusted in addition to the system store.

        • Optionalproxy?: ProxyConfig

          HTTP(S) CONNECT proxy (Node.js only).

      Returns Transport