| 247 | } |
| 248 | |
| 249 | Response::~Response() |
| 250 | { |
| 251 | if (m_Connection) { |
| 252 | if (m_CloseConnection || m_Client->m_SocketResult != dmSocket::RESULT_OK) { |
| 253 | dmConnectionPool::Close(m_Pool, m_Connection); |
| 254 | } else { |
| 255 | dmConnectionPool::Return(m_Pool, m_Connection); |
| 256 | } |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | static void DefaultHttpContentData(HResponse response, void* user_data, int status_code, |
| 261 | const void* content_data, uint32_t content_data_size, int32_t content_length, |