<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=GetRemoteRequestInfo</id>
	<title>GetRemoteRequestInfo - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=GetRemoteRequestInfo"/>
	<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=GetRemoteRequestInfo&amp;action=history"/>
	<updated>2026-09-19T07:26:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://g1r-mp.com/wiki/index.php?title=GetRemoteRequestInfo&amp;diff=659&amp;oldid=prev</id>
		<title>QCherry: Document asynchronous server-side HTTP API</title>
		<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=GetRemoteRequestInfo&amp;diff=659&amp;oldid=prev"/>
		<updated>2026-08-24T12:48:52Z</updated>

		<summary type="html">&lt;p&gt;Document asynchronous server-side HTTP API&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: getRemoteRequestInfo. --&amp;gt;&lt;br /&gt;
= getRemoteRequestInfo =&lt;br /&gt;
Returns the current state of an HTTP request owned by the current server-side resource.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table|false getRemoteRequestInfo(number requestId)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;requestId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The identifier returned by &amp;lt;code&amp;gt;requestRemote&amp;lt;/code&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns a table containing &amp;lt;code&amp;gt;requestId&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;url&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;elapsedMs&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;cancelRequested&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; when the request does not exist or belongs to another resource.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Inspect a pending request:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local info = getRemoteRequestInfo(requestId)&lt;br /&gt;
if info then&lt;br /&gt;
    outputDebugString(&amp;quot;HTTP request is &amp;quot; .. info.state)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* The &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; value is &amp;lt;code&amp;gt;queued&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;running&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;completed&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Completed request records are removed after their callback is dispatched, so this function is intended for pending-request diagnostics and cancellation UI.&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua Functions]]&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Utility Functions]]&lt;br /&gt;
[[Category:HTTP Functions]]&lt;/div&gt;</summary>
		<author><name>QCherry</name></author>
	</entry>
</feed>