API
All events for fetchu, and their properties are listed here.
Events
get
fetchu.get(requestUrl: string, {headers: Dictionary<any>?, nocache: boolean?})
Send an HTTP GET request
post
fetchu.post(requestUrl: string, {content_type: Enum.HttpContentType?, headers: Dictionary<any>?, body: Dictionary<any>, compress: boolean?,})
Send an HTTP POST request
json
fetchu.json(input: table)
Transforms Luau table input into a JSON string.
tablefy
fetchu.tablefy(input: JSON)
Transforms JSON string into a Luau table.
put
fetchu.put(requestUrl: string, {headers: Dictionary<any>?,body: Dictionary<any>?,})
Send an HTTP PUT request
delete
fetchu.delete(requestUrl: string, {headers: Dictionary<any>?,body: Dictionary<any>?,})
Send an HTTP DELETE request
customRequest
fetchu.customRequest(requestUrl: string, {method: string, headers: Dictionary<any>?,body: Dictionary<any>?,})
Sends an HTTP request using a custom method such as CONNECT, PATCH, etc listed on the FetchOptions paramater.