Advanced Request Features
Advanced features like polling, caching, cancellation, and streaming for enhanced request handling.
Z-Fetch provides advanced features beyond basic HTTP requests for comprehensive request handling.
More Advanced Features
Z-Fetch also exposes methods for polling, caching, request cancellation, refetching, streaming, progress tracking, and enhanced error handling:
New Features
Check out the new streaming support, progress tracking, enhanced hooks system, and error mapping features for even more powerful request handling!
Polling
Caching
Request Cancelling
Cancel requests using the promise's cancel() method:
Or cancel via the result's cancelRequest() method:
Refetching
Retry Logic
Automatic retry for failed requests:
Streaming Utilities
Process response streams for large data or real-time processing:
Progress Tracking
Monitor upload and download progress:
Instance Helpers
Access and modify instance configuration:
Error Mapping
Customize error messages for better user experience:
Native Fetch Options
Use all native fetch options with Z-Fetch enhancements:
Timeout Handling
Set request timeouts with automatic error handling:
Force XMLHttpRequest
Force XMLHttpRequest usage even without progress callbacks:
Direct Use of Fetch Options
You can use Z-Fetch as you would use the native fetch, with extra features:
🙋♂️ What else? Suggestions and feedback come in handy on the GitHub page. Please feel free to contribute or report any issues you encounter. This all was made by a human before vibe coding was a thing!