初步确认future-promise的异步调用机制。目录和cmake待整理。
This commit is contained in:
@@ -138,7 +138,7 @@ enum tfe_bussiness_action
|
||||
|
||||
//@param event: bit AND of EV_HTTP_**
|
||||
//@param body_frag: NULL for no body data.
|
||||
typedef tfe_bussiness_action (*http_read_func)(const struct tfe_conn_ctx* ctx, const struct tfe_http_session* session, uint64_t event,struct evbuffer *body_frag, void **pme);
|
||||
typedef tfe_bussiness_action (*http_read_func)(const struct tfe_stream* stream, const struct tfe_http_session* session, uint64_t event,struct evbuffer *body_frag, void **pme);
|
||||
|
||||
struct tfe_http_half *tfe_http_request_create(int major_version,int method, const char* uri, const char* host);
|
||||
struct tfe_http_half *tfe_http_response_create(int major_version,int resp_code, struct evbuff* body);
|
||||
|
||||
Reference in New Issue
Block a user