UNPKG

camstreamerlib

Version:

Helper library for CamStreamer ACAP applications.

12 lines (11 loc) 720 B
/// <reference types="node" /> import { IClient, TResponse } from './types'; import { TProxyParam } from '../types/common'; export declare class ProxyClient<Client extends IClient<TResponse> = IClient<TResponse>> { client: Client; getProxyUrl: () => string; constructor(client: Client, getProxyUrl: () => string); get: (proxy: TProxyParam, url: string, parameters?: import("./types").TParameters | undefined, headers?: Record<string, string> | undefined) => Promise<TResponse>; post: (proxy: TProxyParam, url: string, data: string | Buffer | FormData, parameters?: import("./types").TParameters | undefined, headers?: Record<string, string> | undefined) => Promise<TResponse>; private getReal; }