http is valid: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0.3}} {{FuncDescription|Checks if this http identifier is valid.}} {{FuncSyntax|http_is_valid(http)}} {{FuncParameters}} {{FuncParam|http|The http...")
 
No edit summary
 
Line 9: Line 9:


{{FuncReturnValue|Returns '''true''' if its valid.}}
{{FuncReturnValue|Returns '''true''' if its valid.}}
== Example ==
<syntaxhighlight lang="Lua">
if http_is_valid(http) then
    http_destroy(http)
end
</syntaxhighlight>


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

Latest revision as of 12:44, 28 May 2021

http is valid

Type: Function
Context: Server
Introduced: v1.0.3

Description

Checks if this http identifier is valid.

Syntax

http_is_valid(http)

Parameters

  • http
    The http identifier.

Return Value

  • Returns true if its valid.

Example

if http_is_valid(http) then
    http_destroy(http)
end

See also