Properties
method
Request method
method?: "GET" | "POST" | "HEAD" | "PUT" | "DELETE" | "PATCH"
data
Data to post with the request
data?: any
formData
FormData to add to the request (in Array format)
formData?: ([string, string] | [string, File] | [string, File, string])[]
queryString
QueryString to append to the URL
queryString?: { [key: string]: string | number; }
headers
Request headers to add to the request
headers?: { [key: string]: string | number; }
withCredentials
Toggle withCredentials, defaults to false
withCredentials?: boolean
timeout
Set timeout, defaults to 0
timeout?: number