@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) • 444 B
TypeScript
import { RequestOptions } from './request-options';
export declare function getJSON<T>(url: string, options?: RequestOptions<undefined>): Promise<T>;
export declare function deleteJSON<T>(url: string, options?: RequestOptions<undefined>): Promise<T>;
export declare function putJSON<T>(url: string, options?: RequestOptions<unknown>): Promise<T>;
export declare function postJSON<T>(url: string, options?: RequestOptions<unknown>): Promise<T>;