res://addons/w4gd/rest-client/client_request.gd

Inherits: res://addons/w4gd/rest-client/client_promise.gd < RefCounted

A promise that is resolved by making an HTTP request.

Properties

Node

node

PackedByteArray

request_body

PackedStringArray

request_headers

int

request_method

0

String

request_path

String

request_url

TLSOptions

tls_options

null

Methods

void

request_async ( Callable fail )

void

request_blocking ( Variant poll_delay_usec, Callable fail )


Property Descriptions

Node node

A node in the scene tree that we can add an HTTPRequest to.


PackedByteArray request_body

The request body.


PackedStringArray request_headers

The request headers.


int request_method = 0

The request method.


String request_path

The request path.


String request_url

The request URL.


TLSOptions tls_options = null

The TLSOptions for the HTTP request.


Method Descriptions

void request_async ( Callable fail )

Callback used to execute an asynchronous HTTP request.


void request_blocking ( Variant poll_delay_usec, Callable fail )

Callback used to execute a blocking HTTP request.