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..." |
FlyingFork (talk | contribs) 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
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
- url_encode
- http_count
- http_get_all
- http_is_valid
- http_create
- http_destroy
- http_is_error
- http_result_error
- http_result_body
- http_result_header
- http_result_status
- http_set_protocol
- http_set_resolver_protocol
- http_set_host
- http_set_port
- http_set_target
- http_set_verb
- http_set_timeout
- http_set_verifymode
- http_set_version
- http_set_keepalive
- http_set_field
- http_set_body
- http_send