业务层适配HTTP流式写消息体的接口.

This commit is contained in:
zhengchao
2018-10-16 16:51:15 +08:00
parent 95c57fe8a5
commit f567fba70b
4 changed files with 55 additions and 65 deletions

View File

@@ -20,7 +20,7 @@ struct cached_meta
};
struct cached_meta* cache_query_result_get_header(future_result_t * result);
void cache_query_free_meta(struct cached_meta* meta);
void cache_query_result_append_data(struct evbuffer* buf, future_result_t * result);
size_t cache_query_result_get_data(future_result_t * result, const unsigned char** pp_data);
enum cache_query_status async_web_cache_query(struct cache_handle* handle, unsigned int thread_id,
const struct tfe_http_half * request, struct future* f);