@happy-ts/fetch-t • Docs
Class | Description |
---|---|
FetchError | Represents an error that occurred during a fetch operation when the response is not ok. |
Interface | Description |
---|---|
FetchInit | Extends the standard RequestInit interface from the Fetch API to include additional custom options. |
FetchProgress | Represents the progress of a fetch operation. |
FetchTask | Defines the structure and behavior of a fetch task, including the ability to abort the task and check its status. |
Type alias | Description |
---|---|
FetchResponse | Represents the response of a fetch operation, encapsulating the result data or any error that occurred. |
FetchResponseType | Specifies the expected response type of the fetch request. |
Variable | Description |
---|---|
ABORT_ERROR | Name of abort error; |
TIMEOUT_ERROR | Name of timeout error; |
Function | Description |
---|---|
fetchT | Fetches a resource from the network as a text string and returns a FetchTask representing the operation. |