An open API service indexing awesome lists of open source software.

https://github.com/matteopolak/godot-better-http

A simple HTTP client for Godot 4.x
https://github.com/matteopolak/godot-better-http

Last synced: 26 days ago
JSON representation

A simple HTTP client for Godot 4.x

Awesome Lists containing this project

README

        

# Godot Better HTTP

A simple HTTP client for Godot 4.x.

## Usage

```gdscript
@onready var client: BetterHTTPClient = BetterHTTPClient.new(self, "https://api.mygame.com")

func do_login():
# send POST to https://api.mygame.com/login with some JSON payload
var resp = await (client
.http_post("/login")
.json({
"username": "AzureDiamond",
"password": "hunter2"
})
.send())

if resp.status() != 200:
return print("invalid credentials!")

# parse response as json
var me = await resp.json()
```