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.

22 lines (21 loc) 1.09 kB
export { SmartRequestClient } from './smartrequestclient.js'; export { CoreResponse } from '../core_node/index.js'; export type { HttpMethod, ResponseType, FormField, RetryConfig, TimeoutConfig } from './types/common.js'; export { PaginationStrategy, type TPaginationConfig as PaginationConfig, type OffsetPaginationConfig, type CursorPaginationConfig, type LinkPaginationConfig, type CustomPaginationConfig, type TPaginatedResponse as PaginatedResponse } from './types/pagination.js'; import { SmartRequestClient } from './smartrequestclient.js'; /** * Create a client pre-configured for JSON requests */ export declare function createJsonClient<T = any>(): SmartRequestClient<T>; /** * Create a client pre-configured for form data requests */ export declare function createFormClient<T = any>(): SmartRequestClient<T>; /** * Create a client pre-configured for binary data */ export declare function createBinaryClient<T = any>(): SmartRequestClient<T>; /** * Create a client pre-configured for streaming */ export declare function createStreamClient(): SmartRequestClient<any>;