#34 实现HTTP解析层的Suspend/Resume操作
This commit is contained in:
@@ -158,11 +158,11 @@ enum tfe_http_std_field
|
||||
TFE_HTTP_EXPIRES,
|
||||
TFE_HTTP_ACCEPT_ENCODING,
|
||||
TFE_HTTP_CACHE_CONTROL,
|
||||
TLF_HTTP_IF_MATCH,
|
||||
TLF_HTTP_IF_NONE_MATCH,
|
||||
TLF_HTTP_IF_MODIFIED_SINCE,
|
||||
TLF_HTTP_IF_UNMODIFIED_SINCE,
|
||||
TLF_HTTP_LAST_MODIFIED
|
||||
TLF_HTTP_IF_MATCH,
|
||||
TLF_HTTP_IF_NONE_MATCH,
|
||||
TLF_HTTP_IF_MODIFIED_SINCE,
|
||||
TLF_HTTP_IF_UNMODIFIED_SINCE,
|
||||
TLF_HTTP_LAST_MODIFIED
|
||||
};
|
||||
|
||||
enum http_ev_bit_number
|
||||
|
||||
@@ -83,8 +83,8 @@ void tfe_stream_write_frag_end(struct tfe_stream_write_ctx * w_ctx);
|
||||
|
||||
void tfe_stream_detach(const struct tfe_stream * stream);
|
||||
int tfe_stream_preempt(const struct tfe_stream * stream);
|
||||
struct promise * tfe_stream_suspend(const struct tfe_stream * stream);
|
||||
void tfe_stream_resume(struct promise * promise);
|
||||
void tfe_stream_suspend(const struct tfe_stream * stream);
|
||||
void tfe_stream_resume(const struct tfe_stream * stream);
|
||||
|
||||
//close both sides of the stream.
|
||||
int tfe_stream_shutdown(const struct tfe_stream * stream);
|
||||
|
||||
Reference in New Issue
Block a user