net
Functions
Function
Description
Example
Description
Usage Examples
Smart Fetch with Retry
// Basic smart fetch
const response = await dphelper.net.smartFetch('/api/data');
const data = await response.json();
// Fetch with options
const result = await dphelper.net.smartFetch('https://api.example.com', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ key: 'value' })
});API Error Handling
Details
Last updated