diff --git a/README.md b/README.md
index e60be70..46b4457 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[Website](https://gurted.com/) | [Docs](https://docs.gurted.com/) | [License](LICENSE) | [YouTube video](https://www.youtube.com)
Gurted is an ecosystem similar to the World Wide Web, it features:
-- ⚡ A custom protocol (TCP-based) named `GURT://` with mandatory TLS security with a [spec](docs.gurted.com)
+- ⚡ A custom protocol (TCP-based) named `lw://` with mandatory TLS security with a [spec](docs.gurted.com)
- 🌐 A custom **wayfinder** (browser) written in Rust and GDScript with [Godot](https://godotengine.org/)
- 📄 A custom engine for HTML, CSS, and ***Lua*** (no JavaScript)
- 🏷️ A custom **DNS** that allows users to create domains with TLDs such as `.based`, `.aura`, `.twin`, and many more
@@ -16,7 +16,7 @@ Gurted is an ecosystem similar to the World Wide Web, it features:
# File structure
- `/dns` - The **DNS** (Domain Name System)
- `/docs` - The **documentation** at https://docs.gurted.com
-- `/flumi` - The **wayfinder** Flumi, used to view gurt:// sites
+- `/flumi` - The **wayfinder** Flumi, used to view lw:// sites
- `/protocol` - All protocol related things
- `/protocol/library` - The Rust protocol implementation (client + server)
- `/protocol/gdextension` - The Godot extension for GURT protocol (uses Rust library, used in Flumi)
diff --git a/dns/Cargo.lock b/dns/Cargo.lock
index b84c52f..6db7ec2 100644
--- a/dns/Cargo.lock
+++ b/dns/Cargo.lock
@@ -973,7 +973,7 @@ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
[[package]]
name = "gurtlib"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"base64 0.22.1",
"chrono",
diff --git a/dns/frontend/dashboard.lua b/dns/frontend/dashboard.lua
index 920e42a..61115fb 100644
--- a/dns/frontend/dashboard.lua
+++ b/dns/frontend/dashboard.lua
@@ -74,7 +74,7 @@ end
local function loadDomains()
print('Loading domains...')
- local response = fetch('gurt://dns.web/auth/domains?page=1&limit=100', {
+ local response = fetch('lw://dns.web/auth/domains?page=1&limit=100', {
headers = {
Authorization = 'Bearer ' .. authToken
}
@@ -95,7 +95,7 @@ local function checkAuth()
if authToken then
print('Found auth token, checking validity...')
- local response = fetch('gurt://dns.web/auth/me', {
+ local response = fetch('lw://dns.web/auth/me', {
headers = {
Authorization = 'Bearer ' .. authToken
}
diff --git a/dns/frontend/domain.lua b/dns/frontend/domain.lua
index 0f70f66..1330fdd 100644
--- a/dns/frontend/domain.lua
+++ b/dns/frontend/domain.lua
@@ -29,7 +29,7 @@ local renderRecords
local function deleteRecord(recordId)
print('Deleting DNS record: ' .. recordId)
- local response = fetch('gurt://dns.web/domain/' .. domainName .. '/records/' .. recordId, {
+ local response = fetch('lw://dns.web/domain/' .. domainName .. '/records/' .. recordId, {
method = 'DELETE',
headers = {
Authorization = 'Bearer ' .. authToken
@@ -57,7 +57,7 @@ end
-- Actual implementation
loadRecords = function()
print('Loading DNS records for: ' .. domainName)
- local response = fetch('gurt://dns.web/domain/' .. domainName .. '/records', {
+ local response = fetch('lw://dns.web/domain/' .. domainName .. '/records', {
headers = {
Authorization = 'Bearer ' .. authToken
}
@@ -175,7 +175,7 @@ end
local function loadDomain()
print('Loading domain details for: ' .. domainName)
- local response = fetch('gurt://dns.web/domain/' .. domainName, {
+ local response = fetch('lw://dns.web/domain/' .. domainName, {
headers = {
Authorization = 'Bearer ' .. authToken
}
@@ -197,7 +197,7 @@ local function checkAuth()
if authToken then
print('Found auth token, checking validity...')
- local response = fetch('gurt://dns.web/auth/me', {
+ local response = fetch('lw://dns.web/auth/me', {
headers = {
Authorization = 'Bearer ' .. authToken
}
@@ -228,7 +228,7 @@ end
local function addRecord(type, name, value, ttl)
hideError('record-error')
- local response = fetch('gurt://dns.web/domain/' .. domainName .. '/records', {
+ local response = fetch('lw://dns.web/domain/' .. domainName .. '/records', {
method = 'POST',
headers = {
['Content-Type'] = 'application/json',
diff --git a/dns/frontend/register.lua b/dns/frontend/register.lua
index 859662c..1b408e2 100644
--- a/dns/frontend/register.lua
+++ b/dns/frontend/register.lua
@@ -75,7 +75,7 @@ end
local function loadTLDs()
print('Loading available TLDs...')
- local response = fetch('gurt://dns.web/tlds')
+ local response = fetch('lw://dns.web/tlds')
if response:ok() then
tlds = response:json()
@@ -91,7 +91,7 @@ local function checkAuth()
if authToken then
print('Found auth token, checking validity...')
- local response = fetch('gurt://dns.web/auth/me', {
+ local response = fetch('lw://dns.web/auth/me', {
headers = {
Authorization = 'Bearer ' .. authToken
}
@@ -127,7 +127,7 @@ local function submitDomain(name, tld)
hideError('domain-error')
print('Submitting domain: ' .. name .. '.' .. tld)
- local response = fetch('gurt://dns.web/domain', {
+ local response = fetch('lw://dns.web/domain', {
method = 'POST',
headers = {
['Content-Type'] = 'application/json',
@@ -157,7 +157,7 @@ end
local function createInvite()
print('Creating invite code...')
- local response = fetch('gurt://dns.web/auth/invite', {
+ local response = fetch('lw://dns.web/auth/invite', {
method = 'POST',
headers = {
Authorization = 'Bearer ' .. authToken
@@ -184,7 +184,7 @@ local function redeemInvite(code)
hideError('redeem-error')
print('Redeeming invite code: ' .. code)
- local response = fetch('gurt://dns.web/auth/redeem-invite', {
+ local response = fetch('lw://dns.web/auth/redeem-invite', {
method = 'POST',
headers = {
['Content-Type'] = 'application/json',
diff --git a/dns/frontend/script.lua b/dns/frontend/script.lua
index 12bcc87..0fd0745 100644
--- a/dns/frontend/script.lua
+++ b/dns/frontend/script.lua
@@ -21,7 +21,7 @@ submitBtn:on('submit', function(event)
password = password
})
print(request_body)
- local url = 'gurt://dns.web/auth/login'
+ local url = 'lw://dns.web/auth/login'
local headers = {
['Content-Type'] = 'application/json'
}
diff --git a/dns/frontend/signup.lua b/dns/frontend/signup.lua
index 5b24487..3f47b0e 100644
--- a/dns/frontend/signup.lua
+++ b/dns/frontend/signup.lua
@@ -57,7 +57,7 @@ submitBtn:on('submit', function(event)
password = password
})
- local url = 'gurt://dns.web/auth/register'
+ local url = 'lw://dns.web/auth/register'
local headers = {
['Content-Type'] = 'application/json'
}
diff --git a/docs/docs/dns-system.md b/docs/docs/dns-system.md
index 722ed0d..0d595b2 100644
--- a/docs/docs/dns-system.md
+++ b/docs/docs/dns-system.md
@@ -4,7 +4,7 @@ sidebar_position: 6
# DNS System
-The Gurted ecosystem features a custom DNS system that enables domain resolution for the gurt:// protocol. Unlike traditional DNS, Gurted DNS is designed specifically for the decentralized web ecosystem, providing:
+The Gurted ecosystem features a custom DNS system that enables domain resolution for the lw:// protocol. Unlike traditional DNS, Gurted DNS is designed specifically for the decentralized web ecosystem, providing:
- Domain registration with approval workflows
- DNS record management (A, AAAA, CNAME, TXT)
diff --git a/docs/docs/flumi-browser.md b/docs/docs/flumi-browser.md
index 854b00c..9858a4b 100644
--- a/docs/docs/flumi-browser.md
+++ b/docs/docs/flumi-browser.md
@@ -4,5 +4,5 @@ sidebar_position: 7
# Flumi (browser)
-**Flumi** is the official browser for the Gurted ecosystem, built using the Godot game engine. It provides a complete web browsing experience for `gurt://` URLs with custom HTML/CSS rendering, Lua scripting support, and integration with the Gurted DNS system.
+**Flumi** is the official browser for the Gurted ecosystem, built using the Godot game engine. It provides a complete web browsing experience for `lw://` URLs with custom HTML/CSS rendering, Lua scripting support, and integration with the Gurted DNS system.
diff --git a/docs/docs/gurt-client.md b/docs/docs/gurt-client.md
index 286296a..adcaca3 100644
--- a/docs/docs/gurt-client.md
+++ b/docs/docs/gurt-client.md
@@ -27,7 +27,7 @@ async fn main() -> Result<()> {
let client = GurtClient::new();
// Make a GET request
- let response = client.get("gurt://example.com/").await?;
+ let response = client.get("lw://example.com/").await?;
println!("Status: {}", response.status_code);
println!("Body: {}", response.text()?);
@@ -65,7 +65,7 @@ let client = GurtClient::with_config(config);
### GET Requests
```rust
-let response = client.get("gurt://api.example.com/users").await?;
+let response = client.get("lw://api.example.com/users").await?;
if response.is_success() {
println!("Success: {}", response.text()?);
@@ -78,7 +78,7 @@ if response.is_success() {
#### Text Data
```rust
-let response = client.post("gurt://api.example.com/submit", "Hello, GURT!").await?;
+let response = client.post("lw://api.example.com/submit", "Hello, GURT!").await?;
```
#### JSON Data
@@ -90,30 +90,30 @@ let data = json!({
"email": "john@example.com"
});
-let response = client.post_json("gurt://api.example.com/users", &data).await?;
+let response = client.post_json("lw://api.example.com/users", &data).await?;
```
### PUT Requests
```rust
// Text data
-let response = client.put("gurt://api.example.com/resource/123", "Updated content").await?;
+let response = client.put("lw://api.example.com/resource/123", "Updated content").await?;
// JSON data
let update_data = json!({"status": "completed"});
-let response = client.put_json("gurt://api.example.com/tasks/456", &update_data).await?;
+let response = client.put_json("lw://api.example.com/tasks/456", &update_data).await?;
```
### DELETE Requests
```rust
-let response = client.delete("gurt://api.example.com/users/123").await?;
+let response = client.delete("lw://api.example.com/users/123").await?;
```
### HEAD Requests
```rust
-let response = client.head("gurt://api.example.com/large-file").await?;
+let response = client.head("lw://api.example.com/large-file").await?;
// Check headers without downloading body
let content_length = response.headers.get("content-length");
@@ -122,7 +122,7 @@ let content_length = response.headers.get("content-length");
### OPTIONS Requests
```rust
-let response = client.options("gurt://api.example.com/endpoint").await?;
+let response = client.options("lw://api.example.com/endpoint").await?;
// Check allowed methods
let allowed_methods = response.headers.get("allow");
@@ -132,7 +132,7 @@ let allowed_methods = response.headers.get("allow");
```rust
let patch_data = json!({"name": "Updated Name"});
-let response = client.patch_json("gurt://api.example.com/users/123", &patch_data).await?;
+let response = client.patch_json("lw://api.example.com/users/123", &patch_data).await?;
```
## Response Handling
@@ -152,7 +152,7 @@ pub struct GurtResponse {
### Accessing Response Data
```rust
-let response = client.get("gurt://api.example.com/data").await?;
+let response = client.get("lw://api.example.com/data").await?;
// Status information
println!("Status Code: {}", response.status_code);
@@ -201,14 +201,14 @@ All of this happens transparently when you call methods like `get()`, `post()`,
## URL Parsing
-The client automatically parses `gurt://` URLs:
+The client automatically parses `lw://` URLs:
```rust
// These are all valid GURT URLs:
-client.get("gurt://example.com/").await?; // Port 4878 (default)
-client.get("gurt://example.com:8080/api").await?; // Custom port
-client.get("gurt://192.168.1.100/test").await?; // IP address
-client.get("gurt://localhost:4878/dev").await?; // Localhost
+client.get("lw://example.com/").await?; // Port 4878 (default)
+client.get("lw://example.com:8080/api").await?; // Custom port
+client.get("lw://192.168.1.100/test").await?; // IP address
+client.get("lw://localhost:4878/dev").await?; // Localhost
```
### URL Components
@@ -225,7 +225,7 @@ The client extracts:
```rust
use gurtlib::GurtError;
-match client.get("gurt://invalid-url").await {
+match client.get("lw://invalid-url").await {
Ok(response) => {
// Handle successful response
}
@@ -332,7 +332,7 @@ impl ApiClient {
#[tokio::main]
async fn main() -> Result<()> {
- let api = ApiClient::new("gurt://api.example.com".to_string());
+ let api = ApiClient::new("lw://api.example.com".to_string());
// Create a user
let new_user = CreateUser {
diff --git a/docs/docs/gurt-protocol.md b/docs/docs/gurt-protocol.md
index 0604a79..aacc4a3 100644
--- a/docs/docs/gurt-protocol.md
+++ b/docs/docs/gurt-protocol.md
@@ -4,7 +4,7 @@ sidebar_position: 2
# GURT Protocol
-**GURT** (version 1.0.0) is a TCP-based application protocol designed as an HTTP-like alternative with built-in TLS 1.3 encryption. It serves as the foundation for the Gurted ecosystem, enabling secure communication between clients and servers using the `gurt://` URL scheme.
+**GURT** (version 1.0.0) is a TCP-based application protocol designed as an HTTP-like alternative with built-in TLS 1.3 encryption. It serves as the foundation for the Gurted ecosystem, enabling secure communication between clients and servers using the `lw://` URL scheme.
## Overview
@@ -21,12 +21,12 @@ GURT provides a familiar HTTP-like syntax while offering security through mandat
## URL Scheme
-GURT uses the `gurt://` URL scheme:
+GURT uses the `lw://` URL scheme:
```
-gurt://example.com/path
-gurt://192.168.1.100:4878/api/data
-gurt://localhost:4878/hello
+lw://example.com/path
+lw://192.168.1.100:4878/api/data
+lw://localhost:4878/hello
```
The protocol automatically defaults to port 4878.
@@ -244,13 +244,13 @@ GURT integrates with Gurted's custom DNS system:
### Direct IP Access
```
-gurt://192.168.1.100:4878/
-gurt://localhost:4878/api
+lw://192.168.1.100:4878/
+lw://localhost:4878/api
```
### Domain Resolution
```
-gurt://example.real/ # Resolves via Gurted DNS
+lw://example.real/ # Resolves via Gurted DNS
```
The Gurted DNS server resolves domains in the format `name.tld` to IP addresses, enabling human-readable domain names for GURT services. This is done automatically by your GURT browser and is documented in the [DNS System documentation](./dns-system.md).
diff --git a/docs/docs/gurt-server.md b/docs/docs/gurt-server.md
index 8bcdc71..fb413f1 100644
--- a/docs/docs/gurt-server.md
+++ b/docs/docs/gurt-server.md
@@ -38,7 +38,7 @@ async fn main() -> Result<()> {
Ok(GurtResponse::ok().with_json_body(&users))
});
- println!("GURT server starting on gurt://127.0.0.1:4878");
+ println!("GURT server starting on lw://127.0.0.1:4878");
server.listen("127.0.0.1:4878").await
}
```
@@ -462,7 +462,7 @@ mod tests {
// Test with client
let client = GurtClient::new();
- let response = client.get("gurt://127.0.0.1:9999/test").await.unwrap();
+ let response = client.get("lw://127.0.0.1:9999/test").await.unwrap();
assert_eq!(response.status_code, 200);
assert_eq!(response.text().unwrap(), "test response");
diff --git a/docs/docs/html.md b/docs/docs/html.md
index cbd22ec..fbb6488 100644
--- a/docs/docs/html.md
+++ b/docs/docs/html.md
@@ -75,7 +75,7 @@ line breaks
Links can point to external URLs (which open in the user's default browser) or GURT protocol links:
```html
External link
-GURT protocol link
+GURT protocol link
```
### Line Breaks
@@ -317,7 +317,7 @@ Network image loading with sizing controls:
```html
-
+
```
## Advanced Features
diff --git a/docs/docs/intro.md b/docs/docs/intro.md
index 91cd61b..5392b0c 100644
--- a/docs/docs/intro.md
+++ b/docs/docs/intro.md
@@ -5,7 +5,7 @@ sidebar_position: 1
# Introduction
**Gurted** is a project introducing a new web ecosystem, featuring:
-- the **gurt:// protocol**
+- the **lw:// protocol**
- a custom search engine
- a custom browser - **Flumi**
- a custom **DNS** (Domain Name System)
@@ -22,7 +22,7 @@ Learn more about the GURT protocol: [Protocol Specification](./gurt-protocol.md)
Get started by **exploring Gurted sites** or **try creating your first GURT page**.
To get started, download:
-- [Flumi](https://gurted.com/download/), the official browser for `gurt://`
+- [Flumi](https://gurted.com/download/), the official browser for `lw://`
- A *text editor* of choice, we recommend [Visual Studio Code](https://code.visualstudio.com/download)
## Components
@@ -34,7 +34,7 @@ Gurted consists of three main components:
```html
欢迎使用LeonBrowser
diff --git a/flumi/Scripts/Engine/FontManager.gd b/flumi/Scripts/Engine/FontManager.gd index fd764ac..f9b90c8 100644 --- a/flumi/Scripts/Engine/FontManager.gd +++ b/flumi/Scripts/Engine/FontManager.gd @@ -27,7 +27,7 @@ static func load_font(font_info: Dictionary) -> void: if src.begins_with("http://") or src.begins_with("https://"): load_web_font(font_info) - elif src.begins_with("gurt://"): + elif src.begins_with("lw://"): load_gurt_font(font_info) else: load_local_font(font_info) diff --git a/flumi/Scripts/Network.gd b/flumi/Scripts/Network.gd index d01ea38..6af2dd8 100644 --- a/flumi/Scripts/Network.gd +++ b/flumi/Scripts/Network.gd @@ -20,7 +20,7 @@ func fetch_image(url: String) -> ImageTexture: var headers: PackedStringArray var response_headers = {} - if url.begins_with("gurt://"): + if url.begins_with("lw://"): var gurt_body = await fetch_gurt_resource(url, true) if gurt_body.is_empty(): return null @@ -160,7 +160,7 @@ func fetch_external_resource(url: String, base_url: String = "") -> String: if resolved_url.begins_with("https://"): return await fetch_text(resolved_url) - elif resolved_url.begins_with("gurt://"): + elif resolved_url.begins_with("lw://"): return fetch_gurt_resource(resolved_url) else: print("Resource loading error: Only HTTPS and GURT protocols are supported. Attempted: ", resolved_url) @@ -171,8 +171,8 @@ func fetch_gurt_resource(url: String, as_binary: bool = false): return PackedByteArray() if as_binary else "" var gurt_url = url - if not gurt_url.begins_with("gurt://"): - gurt_url = "gurt://" + gurt_url + if not gurt_url.begins_with("lw://"): + gurt_url = "lw://" + gurt_url if gurt_url.contains("localhost"): gurt_url = gurt_url.replace("localhost", "127.0.0.1") diff --git a/flumi/Scripts/Tags/audio.gd b/flumi/Scripts/Tags/audio.gd index 092c3be..0278985 100644 --- a/flumi/Scripts/Tags/audio.gd +++ b/flumi/Scripts/Tags/audio.gd @@ -102,19 +102,19 @@ func load_audio_async(src: String) -> void: reset_stream_state() - if src.begins_with("https://") or src.begins_with("gurt://"): + if src.begins_with("https://") or src.begins_with("lw://"): await load_remote_audio(src) else: print("Audio loading error: Only HTTPS and GURT protocols are supported. Attempted: ", src) return func load_remote_audio(src: String) -> void: - if not (src.begins_with("https://") or src.begins_with("gurt://")): + if not (src.begins_with("https://") or src.begins_with("lw://")): return if src.begins_with("https://"): await load_https_audio(src) - elif src.begins_with("gurt://"): + elif src.begins_with("lw://"): await load_gurt_audio(src) func load_https_audio(src: String) -> void: diff --git a/flumi/Scripts/Utils/Lua/Crumbs.gd b/flumi/Scripts/Utils/Lua/Crumbs.gd index 0484dcc..3ac7a2d 100644 --- a/flumi/Scripts/Utils/Lua/Crumbs.gd +++ b/flumi/Scripts/Utils/Lua/Crumbs.gd @@ -79,7 +79,7 @@ static func get_current_domain() -> String: static func sanitize_domain_for_filename(domain: String) -> String: # Remove protocol prefix - if domain.begins_with("gurt://"): + if domain.begins_with("lw://"): domain = domain.substr(7) elif domain.contains("://"): var parts = domain.split("://") diff --git a/flumi/Scripts/Utils/Lua/Network.gd b/flumi/Scripts/Utils/Lua/Network.gd index 927ae1f..c3cce45 100644 --- a/flumi/Scripts/Utils/Lua/Network.gd +++ b/flumi/Scripts/Utils/Lua/Network.gd @@ -12,7 +12,7 @@ static func setup_network_api(vm: LuauVM): vm.lua_setglobal("fetch") static func resolve_fetch_url(url: String) -> String: - if url.begins_with("http://") or url.begins_with("https://") or url.begins_with("gurt://"): + if url.begins_with("http://") or url.begins_with("https://") or url.begins_with("lw://"): return url var main_node = Engine.get_main_loop().current_scene @@ -22,9 +22,9 @@ static func resolve_fetch_url(url: String) -> String: if current_domain.is_empty(): if url.begins_with("/"): - return "gurt://" + url.substr(1) + return "lw://" + url.substr(1) else: - return "gurt://" + url + return "lw://" + url return URLUtils.resolve_url(current_domain, url) @@ -35,7 +35,7 @@ static func _lua_fetch_handler(vm: LuauVM) -> int: if vm.lua_gettop() >= 2 and vm.lua_istable(2): options = vm.lua_todictionary(2) - # Resolve relative URLs and default to gurt:// protocol + # Resolve relative URLs and default to lw:// protocol var url = resolve_fetch_url(original_url) # Default options @@ -135,7 +135,7 @@ static func _response_ok_handler(vm: LuauVM) -> int: return 1 static func make_http_request(url: String, method: String, headers: PackedStringArray, body: String) -> Dictionary: - if url.begins_with("gurt://"): + if url.begins_with("lw://"): return make_gurt_request(url, method, headers, body) var http_client = HTTPClient.new() var response_data = { @@ -320,7 +320,7 @@ static func make_gurt_request(url: String, method: String, headers: PackedString "body": "" } - var domain_part = url.replace("gurt://", "") + var domain_part = url.replace("lw://", "") if domain_part.contains("/"): domain_part = domain_part.split("/")[0] diff --git a/flumi/Scripts/Utils/URLUtils.gd b/flumi/Scripts/Utils/URLUtils.gd index 7a22a53..bab6468 100644 --- a/flumi/Scripts/Utils/URLUtils.gd +++ b/flumi/Scripts/Utils/URLUtils.gd @@ -3,7 +3,7 @@ extends RefCounted static func resolve_url(base_url: String, relative_url: String) -> String: # If relative_url is already absolute, return it as-is - if relative_url.begins_with("http://") or relative_url.begins_with("https://") or relative_url.begins_with("gurt://") or relative_url.begins_with("file://"): + if relative_url.begins_with("http://") or relative_url.begins_with("https://") or relative_url.begins_with("lw://") or relative_url.begins_with("file://"): return relative_url # If empty, treat as relative to current domain @@ -94,7 +94,7 @@ static func extract_domain(url: String) -> String: return "" var clean_url = url - if clean_url.begins_with("gurt://"): + if clean_url.begins_with("lw://"): clean_url = clean_url.substr(7) elif clean_url.begins_with("https://"): clean_url = clean_url.substr(8) diff --git a/flumi/Scripts/main.gd b/flumi/Scripts/main.gd index 79da534..b9d5836 100644 --- a/flumi/Scripts/main.gd +++ b/flumi/Scripts/main.gd @@ -120,8 +120,8 @@ func _on_search_submitted(url: String, add_to_history: bool = true) -> void: tab.start_loading() var gurt_url = url - if not gurt_url.begins_with("gurt://"): - gurt_url = "gurt://" + gurt_url + if not gurt_url.begins_with("lw://"): + gurt_url = "lw://" + gurt_url await fetch_gurt_content_async(gurt_url, tab, url, add_to_history) else: @@ -289,7 +289,7 @@ func _on_search_focus_entered() -> void: func _on_search_focus_exited() -> void: if not current_domain.is_empty(): var display_text = current_domain - if display_text.begins_with("gurt://"): + if display_text.begins_with("lw://"): display_text = display_text.right(-7) elif display_text.begins_with("file://"): display_text = URLUtils.file_url_to_path(display_text) @@ -828,7 +828,7 @@ func reload_current_page() -> void: _on_search_submitted(current_domain) func navigate_to_url(url: String, add_to_history: bool = true) -> void: - if url.begins_with("gurt://") or url.begins_with("file://"): + if url.begins_with("lw://") or url.begins_with("file://"): _on_search_submitted(url, add_to_history) else: var resolved_url = resolve_url(url) @@ -837,7 +837,7 @@ func navigate_to_url(url: String, add_to_history: bool = true) -> void: func update_search_bar_from_current_domain() -> void: if not search_bar.has_focus() and not current_domain.is_empty(): var display_text = current_domain - if display_text.begins_with("gurt://"): + if display_text.begins_with("lw://"): display_text = display_text.right(-7) elif display_text.begins_with("file://"): display_text = URLUtils.file_url_to_path(display_text) @@ -878,7 +878,7 @@ func add_to_history(url: String, tab: Tab, add_to_navigation: bool = true): icon_url = tab.get_meta("parsed_icon_url") var clean_url = url - if clean_url.begins_with("gurt://"): + if clean_url.begins_with("lw://"): clean_url = clean_url.right(-7) BrowserHistory.add_entry(clean_url, title, icon_url) @@ -922,7 +922,7 @@ func get_startup_behavior() -> Dictionary: func _handle_startup_behavior(): var args = OS.get_cmdline_args() for arg in args: - if arg.begins_with("gurt://"): + if arg.begins_with("lw://"): print("Opening URL from command line: ", arg) _on_search_submitted(arg, true) return diff --git a/protocol/cli/README.md b/protocol/cli/README.md index 2f75f18..4fe95f8 100644 --- a/protocol/cli/README.md +++ b/protocol/cli/README.md @@ -44,7 +44,7 @@ For production deployments, you can use the Gurted Certificate Authority to get 3. **Follow the DNS challenge instructions:** When prompted, add the TXT record to your domain: - - Go to gurt://dns.web (or your DNS server) + - Go to lw://dns.web (or your DNS server) - Login and navigate to your domain - Add a TXT record with: - Name: `_gurtca-challenge` diff --git a/protocol/gdextension/README.md b/protocol/gdextension/README.md index 4248b09..a9866d9 100644 --- a/protocol/gdextension/README.md +++ b/protocol/gdextension/README.md @@ -16,7 +16,7 @@ GURT networking extension for Godot. var client = GurtProtocolClient.new() client.create_client(30) # 30s timeout - var response = client.request("gurt://127.0.0.1:4878", {"method": "GET"}) + var response = client.request("lw://127.0.0.1:4878", {"method": "GET"}) client.disconnect() # cleanup diff --git a/protocol/gurtca/src/challenges.rs b/protocol/gurtca/src/challenges.rs index e9dc6d4..11331ca 100644 --- a/protocol/gurtca/src/challenges.rs +++ b/protocol/gurtca/src/challenges.rs @@ -3,7 +3,7 @@ use crate::client::{Challenge, GurtCAClient}; pub async fn complete_dns_challenge(challenge: &Challenge, client: &GurtCAClient) -> Result<()> { println!("Please add this TXT record to your domain:"); - println!(" 1. Go to gurt://dns.web (or your DNS server)"); + println!(" 1. Go to lw://dns.web (or your DNS server)"); println!(" 2. Login and navigate to your domain: {}", challenge.domain); println!(" 3. Add TXT record:"); println!(" Name: _gurtca-challenge"); @@ -30,7 +30,7 @@ async fn verify_dns_txt_record(domain: &str, expected_value: &str, client: &Gurt }); let response = client - .post_json("gurt://dns.web/resolve-full", &request) + .post_json("lw://dns.web/resolve-full", &request) .await?; if response.is_success() { diff --git a/protocol/gurtca/src/client.rs b/protocol/gurtca/src/client.rs index 386a9fa..2ea757f 100644 --- a/protocol/gurtca/src/client.rs +++ b/protocol/gurtca/src/client.rs @@ -199,7 +199,7 @@ impl GurtCAClient { async fn fetch_ca_via_http(&self) -> Result
A web ecosystem introducing the gurt://lw:// protocol