Files
leonwww/protocol/gdextension/README.md
Leonmmcoset a508e3cefd
Some checks failed
Build Gurty / Build Gurty (, ubuntu-latest, linux, x86_64-unknown-linux-gnu) (push) Failing after 1m33s
Build GurtCA / Build GurtCA (, ubuntu-latest, linux, x86_64-unknown-linux-gnu) (push) Failing after 11m20s
Build GDExtension / Build GDExtension (libgurt_godot.so, ubuntu-latest, linux, x86_64-unknown-linux-gnu) (push) Failing after 16m9s
Build Flumi / Build Flumi (Linux, 4.4.1, ubuntu-latest, linux) (push) Failing after 2h10m11s
Build Flumi / Build Flumi (Windows Desktop, 4.4.1, windows-latest, windows) (push) Has been cancelled
Build GDExtension / Build GDExtension (gurt_godot.dll, windows-latest, windows, x86_64-pc-windows-msvc) (push) Has been cancelled
Build GurtCA / Build GurtCA (.exe, windows-latest, windows, x86_64-pc-windows-msvc) (push) Has been cancelled
Build Gurty / Build Gurty (.exe, windows-latest, windows, x86_64-pc-windows-msvc) (push) Has been cancelled
update
2025-11-06 20:02:53 +08:00

1.0 KiB

GURT networking extension for Godot.

Quick Start

  1. Build the extension:

    ./build.sh
    
  2. Install in your Godot project:

    • Copy addon/gurt-protocol/ to your project's addons/ folder (e.g. addons/gurt-protocol)
    • Enable the plugin in Project Settings > Plugins
  3. Use in your game:

    var client = GurtProtocolClient.new()
    client.create_client(30)  # 30s timeout
    
    var response = client.request("lw://127.0.0.1:4878", {"method": "GET"})
    
    client.disconnect() # cleanup
    
    if response.is_success:
       print(response.body) // { "content": ..., "headers": {...}, ... }
    else:
       print("Error: ", response.status_code, " ", response.status_message)
    

Build Options

./build.sh                    # Release build for current platform
./build.sh -t debug           # Debug build
./build.sh -p windows         # Build for Windows
./build.sh -p linux           # Build for Linux  
./build.sh -p macos           # Build for macOS