RPCCallOptions | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...
    interface RPCCallOptions {
        addfunctionname?: boolean;
        baseUrl?: string;
        credentials?: RequestCredentials;
        debug?: boolean;
        headers?: Record<string, string>;
        keepalive?: boolean;
        retry429?: boolean;
        signal?: AbortSignal;
        silent?: boolean;
        timeout?: number;
        urlappend?: string;
        wrapresult?: boolean;
    }
    Index

    Properties

    addfunctionname?: boolean

    Append function name to URLs. Purely for better logging/visibility as the WebHare JSONRPC server will ignore it

    baseUrl?: string

    Base URL for service paths

    credentials?: RequestCredentials

    Overide fetch credentials option (defaults to same-origin)

    debug?: boolean

    Debug (Follows 'rpc' debugflag if not explicity specified)

    headers?: Record<string, string>

    Headers to submit (Eg Authorization)

    keepalive?: boolean
    retry429?: boolean

    Retry on 429

    signal?: AbortSignal

    Abort signal to cancel the RPC

    silent?: boolean

    Silent - do not log errors

    timeout?: number

    Call timeout

    urlappend?: string

    Custom URL marker

    wrapresult?: boolean

    Wrap result with response info