mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
READY - Rust HTTP Stuff (#28997)
* WIP AND BROKEN - Rust HTTP Stuff * this mostly works * TM ready??? * Build Rust library * handle failed requests properly * Build Rust library * Build Rust library * Remove TM stuff --------- Co-authored-by: Chuga <98280110+chuga-git@users.noreply.github.com> Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Chuga
paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
parent
772aa6d21a
commit
11d527c819
@@ -22,7 +22,7 @@
|
||||
return
|
||||
|
||||
var/datum/callback/cb = CALLBACK(src, TYPE_PROC_REF(/datum/admins, ccbdb_lookup_callback), usr, ckey)
|
||||
SShttp.create_async_request(RUSTG_HTTP_METHOD_GET, "[GLOB.configuration.url.centcom_ban_db_url][ckey]", proc_callback=cb)
|
||||
SShttp.create_async_request(RUSTLIBS_HTTP_METHOD_GET, "[GLOB.configuration.url.centcom_ban_db_url][ckey]", proc_callback=cb)
|
||||
|
||||
/**
|
||||
* CCBDB Lookup Callback
|
||||
|
||||
@@ -158,7 +158,7 @@ GLOBAL_LIST_EMPTY(sounds_cache)
|
||||
// Send the request off
|
||||
var/datum/http_request/media_poll_request = new()
|
||||
// The fact we are using GET with a body offends me
|
||||
media_poll_request.prepare(RUSTG_HTTP_METHOD_GET, GLOB.configuration.system.ytdlp_url, json_encode(request_body))
|
||||
media_poll_request.prepare(RUSTLIBS_HTTP_METHOD_GET, GLOB.configuration.system.ytdlp_url, json_encode(request_body))
|
||||
// Start it off and wait
|
||||
media_poll_request.begin_async()
|
||||
UNTIL(media_poll_request.is_complete())
|
||||
|
||||
Reference in New Issue
Block a user