AwaitableHTTPRequest

by Swarkin

88

project icon: syntax-highlighted text reading 'await http dot request'

AwaitableHTTPRequest Node for Godot 4

This addon makes HTTP requests much more convenient to use by introducing the await-syntax and removing the need for signals.

Usage

extends AwaitableHTTPRequest

func _ready() -> void:
	var resp := await async_request("https://api.github.com/users/swarkin")
	if resp.success() and resp.status_ok():
		print(resp.status)                   # 200
		print(resp.headers["content-type"])  # application/json

		var json = resp.body_as_json()
		print(json["login"])                 # Swarkin

See examples.tscn for more.


Available on the Godot Asset Library

Requires Godot 4.1

Version

2.2.1

Engine

4.1

Category

Scripts

Download

Version2.2.1
Download Now

Support

If you need help or have questions about this plugin, please contact the author.

Contact Author