| 1152 | } |
| 1153 | |
| 1154 | void AsyncHttpClient::clear() |
| 1155 | { |
| 1156 | m_hostname.clear(); |
| 1157 | m_port = 0U; |
| 1158 | m_base64Authorization.clear(); |
| 1159 | m_uri.clear(); |
| 1160 | m_headers.clear(); |
| 1161 | m_urlEncodedPars.clear(); |
| 1162 | |
| 1163 | m_rspPart = RESPONSE_PART_STATUS_LINE; |
| 1164 | m_rsp.clear(); |
| 1165 | m_rspLine.clear(); |
| 1166 | m_transferCoding = TRANSFER_CODING_IDENTITY; |
| 1167 | m_contentLength = 0U; |
| 1168 | m_contentIndex = 0U; |
| 1169 | m_chunkSize = 0U; |
| 1170 | m_chunkIndex = 0U; |
| 1171 | m_chunkBodyPart = CHUNK_SIZE; |
| 1172 | |
| 1173 | /* Protect against concurrent access. */ |
| 1174 | { |
| 1175 | MutexGuard<Mutex> guard(m_mutex); |
| 1176 | |
| 1177 | m_isReqOpen = false; |
| 1178 | } |
| 1179 | } |
| 1180 | |
| 1181 | bool AsyncHttpClient::isEOL(const String& str, size_t& len) |
| 1182 | { |
no outgoing calls
no test coverage detected