UNPKG

meta-cloud-api

Version:
20 lines (17 loc) 857 B
import { H as HttpMethodsEnum } from './enums-BZd9T2ul.js'; type ResponseHeaderValue = string | string[] | undefined; type ResponseHeaders = Record<string, ResponseHeaderValue>; type ResponseJSONBody = Record<string, unknown>; declare class HttpsClientResponseClass { constructor(resp: Response); statusCode: () => number; headers: () => ResponseHeaders; rawResponse: () => Response; json: () => Promise<ResponseJSONBody>; } declare class HttpsClientClass { constructor(); clearSockets: () => boolean; sendRequest: (host: string, path: string, method: HttpMethodsEnum, headers: HeadersInit, timeout: number, body?: BodyInit | null) => Promise<HttpsClientResponseClass>; } export { HttpsClientClass as H, type ResponseHeaders as R, HttpsClientResponseClass as a, type ResponseHeaderValue as b, type ResponseJSONBody as c };