http count: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0.3}} {{FuncDescription|Gets amount currently existing http requests.}} {{FuncSyntax|http_count()}} {{FuncParameters}} {{FuncNoParam}} {{FuncRetur...")
 
No edit summary
 
Line 9: Line 9:


{{FuncReturnValue|Returns number of http requests.}}
{{FuncReturnValue|Returns number of http requests.}}
== Example ==
<syntaxhighlight lang="Lua">
print("Existing HTTP Requests: " .. http_count())
</syntaxhighlight>


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

Latest revision as of 12:46, 28 May 2021

http count

Type: Function
Context: Server
Introduced: v1.0.3

Description

Gets amount currently existing http requests.

Syntax

http_count()

Parameters

  • This function has no parameters.

Return Value

  • Returns number of http requests.

Example

print("Existing HTTP Requests: " .. http_count())

See also