aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
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
commit09fd5f5c24ce919563cdadf0919901664cc3de30 (patch)
tree29127ae0b64bc5de6a449bb04ca373fd64039bec /util-src
parent1ec3ab3c2fc96368675e3b679cf50c3396ef8369 (diff)
downloadprosody-09fd5f5c24ce919563cdadf0919901664cc3de30.tar.gz
prosody-09fd5f5c24ce919563cdadf0919901664cc3de30.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 'util-src')
0 files changed, 0 insertions, 0 deletions