grip_request

Starts sending of the request

Syntax

native GripRequestCancellation:grip_request(const uri[], GripBody:body, GripRequestType:type, const handler[], GripRequestOptions:options = Empty_GripRequestOptions, const any: userData = 0)

Usage

uri Request URI. Supports TLS.
body Reqeust body, can be either JSON or plaintext
type Request type which should be sended.
handler A callback which will be called when request finishes execution
options Request options containing HTTP headers, timeout and so on..
userData User data (can be datapack or anything)

Return

Cancellation handle.

Defined in grip.inc . This documentation was automatically generated from source.