lunex-http
Version:
A lightweight and flexible REST API client for JavaScript and TypeScript, supporting CommonJS and ES modules (ESM). Features include HTTP methods (GET, POST, PUT, PATCH, DELETE), built-in retry policies with exponential backoff, request lifecycle hooks fo
14 lines (13 loc) • 499 B
TypeScript
/**
* Main entry point for the Lunex HTTP library.
*
* Exports core classes for API interaction, payload handling, and utility functions.
*
* @module lunex-http
* @author Bishal Shrestha <https://github.com/shrestha-bishal>
*/
import LunexClient from './rest/LunexClient';
export { shouldRetry } from './policies/retry-policy';
export { default as LunexClient } from './rest/LunexClient';
export { default as LunexClientOptions } from './rest/LunexClientOptions';
export default LunexClient;