t-comm
Version:
专业、稳定、纯粹的工具库
15 lines (14 loc) • 355 B
TypeScript
/// <reference types="node" />
import type * as httpModule from 'http';
/**
* 获取 http 模块
* @returns http 模块
* @description 仅在 Node.js 环境中可用
* @example
* ```ts
* import { getHttp } from 't-comm';
* const http = getHttp();
* http.request(options, callback);
* ```
*/
export declare function getHttp(): typeof httpModule;