headers?: Record<string, string>
method
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS"
onArrayBuffer
onArrayBuffer: ((data: ArrayBuffer) => void) | null
onBlob
onBlob: ((data: Blob) => void) | null
onJson
onJson: ((data: any) => void) | null
onText
onText: ((data: string) => void) | null
OptionalqueryParams
queryParams?: Record<string, string>
Optionalresponse
response?: Response