http get all: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0.3}} {{FuncDescription|Gets all http identifer in a table.}} {{FuncSyntax|http_get_all()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|R..."
 
No edit summary
 
Line 9: Line 9:


{{FuncReturnValue|Returns all http identifers in a table.}}
{{FuncReturnValue|Returns all http identifers in a table.}}
== Example ==
<syntaxhighlight lang="Lua">
function destroyAllHTTPs()
    for index, http in ipairs(http_get_all()) do
        http_destroy(http)
    end
end
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{HttpFunctions}}
{{HttpFunctions}}

Latest revision as of 12:47, 28 May 2021

http get all

Type: Function
Context: Server
Introduced: v1.0.3

Description

Gets all http identifer in a table.

Syntax

http_get_all()

Parameters

  • This function has no parameters.

Return Value

  • Returns all http identifers in a table.

Example

function destroyAllHTTPs()
    for index, http in ipairs(http_get_all()) do
        http_destroy(http)
    end
end

See also