aboutsummaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-08-08 13:13:50 +0100
committerMatthew Wild <mwild1@gmail.com>2020-08-08 13:13:50 +0100
commite1cc07c773b16c6a376dda569f5cf0bfab0998a0 (patch)
tree29127ae0b64bc5de6a449bb04ca373fd64039bec /COPYING
parent566680e94768030f7484420f8ea2415a5c5fec75 (diff)
downloadprosody-e1cc07c773b16c6a376dda569f5cf0bfab0998a0.tar.gz
prosody-e1cc07c773b16c6a376dda569f5cf0bfab0998a0.zip
net.http: Add request:cancel() method
This is a new API that should be used in preference to http.destroy_request() when possible, as it ensures the callback is always called (with an error of course). APIs that have edge-cases where they don't call callbacks have, from experience, shown to be difficult to work with and often lead to unintentional leaks when the callback was expected to free up certain resources.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions