Skip to main content
Version: v7.0.0

RequestSendActionsType


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

Preview

type RequestSendActionsType<Request> = {
onBeforeSent?: (eventData: RequestEventType<Request>) => void;
onDownloadProgress?: (eventData: RequestProgressEventType<Request>) => void;
onRemove?: (eventData: RequestEventType<Request>) => void;
onRequestStart?: (eventData: RequestEventType<Request>) => void;
onResponse?: (eventData: RequestResponseEventType<Request>) => void;
onResponseStart?: (eventData: RequestEventType<Request>) => void;
onUploadProgress?: (eventData: RequestProgressEventType<Request>) => void;
}

Structure

RequestSendActionsType
NameTypeDescription
onBeforeSent
(eventData: RequestEventType<Request>) => void
onDownloadProgress
(eventData: RequestProgressEventType<Request>) => void
onRemove
(eventData: RequestEventType<Request>) => void
onRequestStart
(eventData: RequestEventType<Request>) => void
onResponse
(eventData: RequestResponseEventType<Request>) => void
onResponseStart
(eventData: RequestEventType<Request>) => void
onUploadProgress
(eventData: RequestProgressEventType<Request>) => void
On this page