camstreamerlib
Version:
Helper library for CamStreamer ACAP applications.
17 lines (16 loc) • 748 B
TypeScript
/// <reference types="node" />
import { IClient, HttpOptions, TParameters } from '../internal/types';
import { Response as UndiciResponse } from 'undici';
export declare class DefaultClient implements IClient<UndiciResponse> {
private tls;
private ip;
private port;
private user;
private pass;
private httpRequestSender;
constructor(opt?: HttpOptions);
get url(): string;
get: (url: string, parameters?: TParameters | undefined, headers?: Record<string, string> | undefined) => Promise<UndiciResponse>;
post: (url: string, data: string | Buffer | FormData, parameters?: TParameters | undefined, headers?: Record<string, string> | undefined) => Promise<UndiciResponse>;
private getBaseConnectionParams;
}