Files
GS13NG/datum/tgs_http_handler.html
2025-02-05 06:19:18 +00:00

8 lines
2.2 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/tgs_http_handler - /tg/ Station 13</title></head><body><header><a href="index.html">/tg/ Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a><a href="datum/tgs_http_handler.html#proc">Proc Details</a></header><main><h1>tgs_http_handler <aside>/<a href="datum.html">datum</a>/<a href="datum/tgs_http_handler.html">tgs_http_handler</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/__DEFINES/tgs.dm#L287"><img src="git.png" width="16" height="16" title="code/__DEFINES/tgs.dm 287"></a></h1><p>User definable handler for HTTP calls. This abstract version MUST be overridden to be used.</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/tgs_http_handler.html#proc/PerformGet">PerformGet</a></th><td>User definable callback for executing HTTP GET requests.
MUST perform BYOND sleeps while the request is in flight.
MUST return a <a href="datum/tgs_http_result.html" title="/datum/tgs_http_result">/datum/tgs_http_result</a>.
SHOULD log its own errors</td></tr></table><h2 id="proc">Proc Details</h2><h3 id="proc/PerformGet"><aside class="declaration">proc </aside>PerformGet<aside>(url) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/__DEFINES/tgs.dm#L297"><img src="git.png" width="16" height="16" title="code/__DEFINES/tgs.dm 297"></a></aside></h3><p>User definable callback for executing HTTP GET requests.
MUST perform BYOND sleeps while the request is in flight.
MUST return a <a href="datum/tgs_http_result.html" title="/datum/tgs_http_result">/datum/tgs_http_result</a>.
SHOULD log its own errors</p>
<p>url - The full URL to execute the GET request for including query parameters.</p></main><footer>tgstation.dme <a href="https://github.com/evilew/GS13-Citadel/tree/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e">e8e0068</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.9.0</a></footer></body></html>