From 30a0510e97b01244ee21b787ae4f4cd70bcc6559 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Tue, 29 Jun 2010 13:43:05 +0000 Subject: Ticket #1018: Application may now destroy pj_http_req inside on_complete callback. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3227 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib-util/include/pjlib-util/http_client.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pjlib-util') diff --git a/pjlib-util/include/pjlib-util/http_client.h b/pjlib-util/include/pjlib-util/http_client.h index bcd6e425..2259b3f5 100644 --- a/pjlib-util/include/pjlib-util/http_client.h +++ b/pjlib-util/include/pjlib-util/http_client.h @@ -214,6 +214,10 @@ typedef struct pj_http_req_callback * as long as pj_http_req is not destroyed and application does * not start a new request. * + * If no longer required, application may choose to destroy + * pj_http_req immediately by calling #pj_http_req_destroy() inside + * the callback. + * * @param http_req The http request. * @param status The status of the request operation. PJ_SUCCESS * if the operation completed successfully -- cgit v1.2.3