mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 19:51:49 +08:00
完善http服务器对不固定长度body的支持
This commit is contained in:
@@ -52,14 +52,14 @@ public:
|
||||
virtual ~HttpBody(){}
|
||||
|
||||
/**
|
||||
* 剩余数据大小
|
||||
* 剩余数据大小,如果返回>=INT64_MAX, 那么就不设置content-length
|
||||
*/
|
||||
virtual uint64_t remainSize() { return 0;};
|
||||
|
||||
/**
|
||||
* 读取一定字节数,返回大小可能小于size
|
||||
* @param size 请求大小
|
||||
* @return 字节对象
|
||||
* @return 字节对象,如果读完了,那么请返回nullptr
|
||||
*/
|
||||
virtual Buffer::Ptr readData(uint32_t size) { return nullptr;};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user