made ~http_resource() and ~http_response() virtual to avoid compiler warnings and potential memory leaks