@logi.one/rest-client
Version:
This is a free, ultra-lightweight and easy to use rest client for node.js supporting JSON requests and streams with no external dependencies.
6 lines (5 loc) • 504 B
TypeScript
import { IncomingMessage } from 'http';
import { RequestOptions } from './request-options';
export declare function getStream(url: string, options?: RequestOptions<undefined>): Promise<IncomingMessage>;
export declare function postStream(url: string, readableStream: NodeJS.ReadableStream, options?: RequestOptions<undefined>): Promise<IncomingMessage>;
export declare function putStream(url: string, readableStream: NodeJS.ReadableStream, options?: RequestOptions<undefined>): Promise<IncomingMessage>;