HTTP::close¶
Description¶
Closes the HTTP connection.
Syntax¶
HTTP::close
HTTP::close¶
- Closes the HTTP connection. In a RESPONSE event, also inserts a Connection: Close header. Note that OneConnect transformations, if enabled, may modify the inserted header, but the connection will still close.
Examples¶
when HTTP_REQUEST {
set method [HTTP::method]
}
when HTTP_RESPONSE {
# The current connection will close after a POST reply
if { $method eq "POST" } {
HTTP::close
}
}