| 181 | void ExpectSha256(const SHA256_DIGEST &Sha256) { m_ExpectedSha256 = Sha256; } |
| 182 | void Head() { m_Type = REQUEST::HEAD; } |
| 183 | void Post(const unsigned char *pData, size_t DataLength) |
| 184 | { |
| 185 | m_Type = REQUEST::POST; |
| 186 | m_BodyLength = DataLength; |
| 187 | m_pBody = (unsigned char *)malloc(std::max((size_t)1, DataLength)); |
| 188 | mem_copy(m_pBody, pData, DataLength); |
| 189 | } |
| 190 | void PostJson(const char *pJson) |
| 191 | { |
| 192 | m_Type = REQUEST::POST_JSON; |