///
import https from 'http';
import type { IncomingHttpHeaders } from 'http';
declare type HttpClientResponse = {
data: D;
http_version: string;
status_code: number;
stream: https.IncomingMessage;
headers: IncomingHttpHeaders;
};
declare type HttpClientArg = {
b_url?: string;
socket_path?: string;
b_headers?: IncomingHttpHeaders;
};
declare type HttpClientOpts = {
sp?: Record;
socket_path?: string;
is_stream?: boolean;
headers?: IncomingHttpHeaders;
};
export declare class HttpClient {
/** Base Url */
b_url: string;
socket_path?: string;
b_headers: IncomingHttpHeaders;
constructor(arg?: HttpClientArg);
private _gen_request_arg;
private _process_gen_request;
get: (u_url: string, opts?: HttpClientOpts) => Promise>;
post: (u_url: string, data?: any, opts?: HttpClientOpts) => Promise>;
patch: (u_url: string, data?: any, opts?: HttpClientOpts) => Promise>;
put: (u_url: string, data?: any, opts?: HttpClientOpts) => Promise>;
delete: (u_url: string, opts?: HttpClientOpts) => Promise>;
}
export {};