<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=http_destroy</id>
	<title>http destroy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=http_destroy"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=http_destroy&amp;action=history"/>
	<updated>2026-04-24T11:27:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=http_destroy&amp;diff=3688&amp;oldid=prev</id>
		<title>BlueMountains: Created page with &quot;{{Info|Function|Server|1.0.3}}  {{FuncDescription|Destroys an identifier. You must always call this if you no longer need the http request.}}  {{FuncSyntax|http_destroy(http)}...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=http_destroy&amp;diff=3688&amp;oldid=prev"/>
		<updated>2020-01-19T21:50:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Info|Function|Server|1.0.3}}  {{FuncDescription|Destroys an identifier. You must always call this if you no longer need the http request.}}  {{FuncSyntax|http_destroy(http)}...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Info|Function|Server|1.0.3}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Destroys an identifier. You must always call this if you no longer need the http request.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|http_destroy(http)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|http|The http identifier.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns &amp;#039;&amp;#039;&amp;#039;true&amp;#039;&amp;#039;&amp;#039; on success.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function test_get()&lt;br /&gt;
	local r = http_create()&lt;br /&gt;
	http_set_resolver_protocol(r, &amp;quot;any&amp;quot;)&lt;br /&gt;
	http_set_protocol(r, &amp;quot;https&amp;quot;)&lt;br /&gt;
	http_set_host(r, &amp;quot;postman-echo.com&amp;quot;)&lt;br /&gt;
	http_set_port(r, 443)&lt;br /&gt;
	http_set_verifymode(r, &amp;quot;verify_peer&amp;quot;)&lt;br /&gt;
	http_set_target(r, &amp;quot;/get?foo=bar&amp;amp;onset=nice&amp;quot;)&lt;br /&gt;
	http_set_verb(r, &amp;quot;get&amp;quot;)&lt;br /&gt;
	http_set_timeout(r, 30)&lt;br /&gt;
	http_set_version(r, 11)&lt;br /&gt;
	http_set_keepalive(r, false)&lt;br /&gt;
	http_set_field(r, &amp;quot;user-agent&amp;quot;, &amp;quot;Onset Server &amp;quot;..GetGameVersionString())&lt;br /&gt;
	&lt;br /&gt;
	if http_send(r, OnGetComplete, &amp;quot;Str L&amp;quot;, 88.88, 1337) == false then&lt;br /&gt;
		print(&amp;quot;HTTP REQ NOT SENT :(&amp;quot;)&lt;br /&gt;
		http_destroy(r)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function OnGetComplete(a, b, c)&lt;br /&gt;
	print(&amp;quot;OnGetComplete&amp;quot;, a, b, c)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{HttpFunctions}}&lt;/div&gt;</summary>
		<author><name>BlueMountains</name></author>
	</entry>
</feed>