FetchAdapterOptionsType
Options passed to the native fetch adapter. Extends RequestInit with a
timeout
option.
Import
import { FetchAdapterOptionsType } from "@hyper-fetch/core"
Source
Package
Preview
type FetchAdapterOptionsType = Omit<RequestInit, (method | headers | body | signal)> & { streaming?: boolean; timeout?: number };
Structure
FetchAdapterOptionsType
| Name | Type | Description |
|---|---|---|
| streaming | | When true, the response
|
| timeout | | Request timeout in milliseconds. Defaults to 5000ms. |
