void OnAsyncResponseStarted (IntPtr sender, IntPtr calldata, IntPtr closure) { try { IntPtr response = NativeMethods.http_request_get_response (native); bytes_read = 0; async_result.Response = new BrowserHttpWebResponse (this, response); } catch (Exception e) { async_result.Exception = e; } }