Control
HTTP:close()
Close the current HTTP transaction and disable its HTTP events. This function can only be used in event HTTP_REQUEST.
Note the following:
-
Close the current HTTP transaction and disable its HTTP events.
-
This function can only be used in event HTTP_REQUEST.
-
The code logic in the HTTP_REQUEST event will be executed and then close the http connection no matter where method HTTP:close() is.
Example
when HTTP_REQUEST {
local path = HTTP:path()
HTTP:close()
local url = HTTP:url()
}