Client setup
fastApi- Ready starter client. Syntax:
fastApi.get(url)
createStormFetchClient- Recommended reusable client. Syntax:
createStormFetchClient(options?)
createFastApiClient- Backward-compatible factory alias. Syntax:
createFastApiClient(options?)
createTypedStormFetchClient- Compile-time endpoint map typing. Syntax:
createTypedStormFetchClient<T>(options?)
createReactNativeStormFetchClient- React Native and Expo-safe client. Syntax:
createReactNativeStormFetchClient(options?)
createStormFetchServerClient- SSR and backend client. Syntax:
createStormFetchServerClient(options?)
HTTP calls
request- Fully configurable request. Syntax:
client.request(config)
fetch- Fetch-like normalized call. Syntax:
client.fetch(url, config?)
get- Read a resource. Syntax:
client.get<T>(url, config?)
post- Create or trigger an action. Syntax:
client.post(url, data?, config?)
put- Replace a full resource. Syntax:
client.put(url, data?, config?)
patch- Update selected fields. Syntax:
client.patch(url, data?, config?)
delete- Remove a resource. Syntax:
client.delete(url, config?)
head- Read headers without a body. Syntax:
client.head(url, config?)
options- Inspect server capabilities. Syntax:
client.options(url, config?)
query- Send an HTTP QUERY body. Syntax:
client.query(url, data?, config?)
GET- Uppercase alias of get. Syntax:
client.GET(url, config?)
POST- Uppercase alias of post. Syntax:
client.POST(url, data?, config?)
PUT- Uppercase alias of put. Syntax:
client.PUT(url, data?, config?)
PATCH- Uppercase alias of patch. Syntax:
client.PATCH(url, data?, config?)
DELETE- Uppercase alias of delete. Syntax:
client.DELETE(url, config?)
HEAD- Uppercase alias of head. Syntax:
client.HEAD(url, config?)
OPTIONS- Uppercase alias of options. Syntax:
client.OPTIONS(url, config?)
QUERY- Uppercase alias of query. Syntax:
client.QUERY(url, data?, config?)
API and body helpers
postJson- Explicit JSON POST. Syntax:
client.postJson(url, data?, config?)
postForm- URL-encoded form POST. Syntax:
client.postForm(url, data, config?)
postMultipart- Multipart fields and files. Syntax:
client.postMultipart(url, data, config?)
graphql- GraphQL operation. Syntax:
client.graphql(query, variables?, config?)
batch- Parallel ordered requests. Syntax:
client.batch(requests)
poll- Repeat GET until stopped. Syntax:
client.poll(url, options)
resource- Build REST CRUD helpers. Syntax:
client.resource(basePath)
contract- Build named typed endpoints. Syntax:
client.contract(definition)
createFormData- Build multipart data. Syntax:
createFormData(data)
createReactNativeFile- Create mobile file descriptor. Syntax:
createReactNativeFile(uri, name, type)
isReactNativeFile- Validate mobile file descriptor. Syntax:
isReactNativeFile(value)
download- Fetch and optionally save a file. Syntax:
client.download(url, fileName?, config?)
saveBlob- Save a browser Blob. Syntax:
saveBlob(blob, fileName?)
generateStormFetchServicesFromOpenApi- Generate TypeScript services. Syntax:
generateStormFetchServicesFromOpenApi(document, options?)
DOM and scraping
getHtml- Fetch HTML as text. Syntax:
client.getHtml(url, config?)
getXml- Fetch XML as text. Syntax:
client.getXml(url, config?)
getDom- Fetch and parse a document. Syntax:
client.getDom(url, config?)
parseDom- Parse existing markup. Syntax:
parseDom(html, mimeType?)
scrape- Fetch and extract typed fields. Syntax:
client.scrape(url, schema, config?)
Cache and debugging
clearCache- Clear memory cache. Syntax:
client.clearCache(key?)
clearCacheAsync- Clear async storage too. Syntax:
client.clearCacheAsync(key?)
invalidateTags- Remove tagged records. Syntax:
client.invalidateTags(tags)
prefetch- Load and cache early. Syntax:
client.prefetch(url, config?)
dehydrateCache- Export cache snapshot. Syntax:
client.dehydrateCache()
hydrateCache- Restore cache snapshot. Syntax:
client.hydrateCache(snapshot)
cacheKeys- Inspect stored keys. Syntax:
client.cacheKeys()
cacheManager- Compact cache facade. Syntax:
client.cacheManager.keys()
history- Read redacted history. Syntax:
client.history()
clearHistory- Remove history. Syntax:
client.clearHistory()
replay- Repeat recorded request. Syntax:
client.replay(requestId)
toCurl- Create redacted curl command. Syntax:
client.toCurl(idOrConfig)
toHAR- Export redacted HAR. Syntax:
client.toHAR()
subscribe- Observe lifecycle events. Syntax:
client.subscribe(listener)
policy- Apply route-matched defaults. Syntax:
client.policy(match, config)
createStormFetchDevTools- Create headless inspector. Syntax:
createStormFetchDevTools(client, options?)
mountStormFetchDevTools- Mount browser inspector. Syntax:
mountStormFetchDevTools(client, element, options?)
Streams and live data
streamText- Read text chunks. Syntax:
client.streamText(url, config?)
streamJson- Read one streamed JSON value. Syntax:
client.streamJson(url, config?)
streamNdjson- Read JSON objects per line. Syntax:
client.streamNdjson(url, config?)
sse- Connect to Server-Sent Events. Syntax:
client.sse(url, options?)
Offline and mobile
flushOfflineQueue- Send queued mutations. Syntax:
client.flushOfflineQueue()
offlineQueueSnapshot- Inspect pending and dead letters. Syntax:
client.offlineQueueSnapshot()
retryOfflineRequest- Retry one offline request. Syntax:
client.retryOfflineRequest(id)
discardOfflineRequest- Discard one offline request. Syntax:
client.discardOfflineRequest(id)
retryOfflineBatch- Retry selected dead letters. Syntax:
client.retryOfflineBatch(ids?)
reconcileOfflineRequest- Replace conflicted data and retry. Syntax:
client.reconcileOfflineRequest(id, config)
createMemoryOfflineQueueStorage- In-memory queue storage. Syntax:
createMemoryOfflineQueueStorage(initial?)
createJsonOfflineQueueStorage- JSON persistence adapter. Syntax:
createJsonOfflineQueueStorage(storage, options?)
nativeUpload- Run native background upload. Syntax:
client.nativeUpload(options)
nativeDownload- Run native background download. Syntax:
client.nativeDownload(options)
startNativeUpload- Create pausable upload task. Syntax:
client.startNativeUpload(options)
startNativeDownload- Create pausable download task. Syntax:
client.startNativeDownload(options)
usePlugin- Install a verified plugin. Syntax:
client.usePlugin(plugin)
removePlugin- Remove plugin by name. Syntax:
client.removePlugin(name)
installedPlugins- Inspect installed plugin metadata. Syntax:
client.installedPlugins()
dispose- Release listeners and plugins. Syntax:
client.dispose()