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..." |
FlyingFork (talk | contribs) 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
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
- 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