新增remainData接口

This commit is contained in:
ziyue 2021-08-02 15:53:26 +08:00
parent 6df0ee69e0
commit 91f370e925
2 changed files with 9 additions and 0 deletions

View File

@ -126,6 +126,10 @@ size_t HttpRequestSplitter::remainDataSize() {
return _remain_data_size;
}
const char *HttpRequestSplitter::remainData() const {
return _remain_data.data();
}
} /* namespace mediakit */

View File

@ -75,6 +75,11 @@ protected:
*/
size_t remainDataSize();
/**
*
*/
const char *remainData() const;
private:
ssize_t _content_len = 0;
size_t _remain_data_size = 0;