UNPKG

@push.rocks/smartrequest

Version:

A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.

11 lines (10 loc) 881 B
import * as interfaces from './smartrequest.interfaces.js'; /** * gets Json and puts the right headers + handles response aggregation * @param domainArg * @param optionsArg */ export declare const getJson: (domainArg: string, optionsArg?: interfaces.ISmartRequestOptions) => Promise<import("./smartrequest.request.js").IExtendedIncomingMessage<any>>; export declare const postJson: (domainArg: string, optionsArg?: interfaces.ISmartRequestOptions) => Promise<import("./smartrequest.request.js").IExtendedIncomingMessage<any>>; export declare const putJson: (domainArg: string, optionsArg?: interfaces.ISmartRequestOptions) => Promise<import("./smartrequest.request.js").IExtendedIncomingMessage<any>>; export declare const delJson: (domainArg: string, optionsArg?: interfaces.ISmartRequestOptions) => Promise<import("./smartrequest.request.js").IExtendedIncomingMessage<any>>;