初步调通HTTP重定向业务
* 增加HTTP Status标准化定义及辅助函数; * 增加HTTP解析层发送应答的功能 * 修正了Pangu HTTP实现导致段错误的一系列问题。
This commit is contained in:
@@ -30,6 +30,10 @@ struct http_session_private
|
||||
struct http_connection_private * hc_private;
|
||||
/* HTTP FRAME CTX */
|
||||
struct http_frame_session_ctx * ht_frame;
|
||||
/* USER SETUP REQUEST HALF */
|
||||
struct http_half_private * hf_private_req_user;
|
||||
/* USER SETUP RESPONSE HALF */
|
||||
struct http_half_private * hf_private_resp_user;
|
||||
};
|
||||
|
||||
struct http_connection_private
|
||||
@@ -82,6 +86,12 @@ static inline const struct tfe_http_session * to_hs_public(const struct http_ses
|
||||
return &hs_private->hs_public;
|
||||
}
|
||||
|
||||
static inline struct tfe_http_session * to_hs_public(struct http_session_private * hs_private)
|
||||
{
|
||||
if (hs_private == NULL) return NULL;
|
||||
return &hs_private->hs_public;
|
||||
}
|
||||
|
||||
static inline struct http_session_private * to_hs_private(struct tfe_http_session * hs_public)
|
||||
{
|
||||
if (hs_public == NULL) return NULL;
|
||||
|
||||
Reference in New Issue
Block a user