@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.05 kB
TypeScript
export { SmartRequest } from './smartrequest.js';
export { CoreResponse } from '../core/index.js';
export type { HttpMethod, ResponseType, FormField, RetryConfig, TimeoutConfig, RateLimitConfig } 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 { SmartRequest } from './smartrequest.js';
/**
* Create a client pre-configured for JSON requests
*/
export declare function createJsonClient<T = any>(): SmartRequest<T>;
/**
* Create a client pre-configured for form data requests
*/
export declare function createFormClient<T = any>(): SmartRequest<T>;
/**
* Create a client pre-configured for binary data
*/
export declare function createBinaryClient<T = any>(): SmartRequest<T>;
/**
* Create a client pre-configured for streaming
*/
export declare function createStreamClient(): SmartRequest<any>;