Skip to main content
Version: v8.0.0

RequestHooks


Import
import { RequestHooks } from "@hyper-fetch/core"

Structure

RequestHooks
NameTypeDescription
onBeforeSent
(cb: (eventData: RequestEventType<R>) => void) => () => void
onDownloadProgress
(cb: (eventData: RequestProgressEventType<R>) => void) => () => void
onRemove
(cb: (eventData: RequestEventType<R>) => void) => () => void
onRequestStart
(cb: (eventData: RequestEventType<R>) => void) => () => void
onResponse
(cb: (eventData: RequestResponseEventType<R>) => void) => () => void
onResponseStart
(cb: (eventData: RequestEventType<R>) => void) => () => void
onUploadProgress
(cb: (eventData: RequestProgressEventType<R>) => void) => () => void