fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Server / put

Function: put()

put<T>(url, data, headers): Promise<T>

Makes a PUT request.

Type Parameters

T

Parameters

url: string

The URL to which the request is sent.

data: RequestData

The request body data.

headers: RequestHeaders = {}

Optional headers to include in the request.

Returns

Promise<T>

A promise that resolves to the response data of type T.

Defined in

server/web/requests.ts:38