新增mk_http_body无拷贝创建api

This commit is contained in:
ziyue
2023-02-11 11:55:06 +08:00
parent 56586189cf
commit 5078723236
3 changed files with 14 additions and 1 deletions

View File

@@ -145,6 +145,13 @@ typedef void* mk_http_body;
*/
API_EXPORT mk_http_body API_CALL mk_http_body_from_string(const char *str,size_t len);
/**
* 生成HttpBufferBody
* @param buffer mk_buffer对象
*/
API_EXPORT mk_http_body API_CALL mk_http_body_from_buffer(mk_buffer buffer);
/**
* 生成HttpFileBody
* @param file_path 文件完整路径