Nginx HTTP处理请求头函数ngx_http_process_request_headers
发布时间
阅读量:
阅读量
对于HTTP协议1.0及以上版本而言,在解析完HTTP请求行之后,接下来的步骤便是对HTTP请求头进行解析处理,Nginx通过调用ngx_http_process_request_headers函数来实现这一功能。
/* http/ngx_http_request.c */
/* 处理HTTP请求头
* param r: 待处理的HTTP请求
* return :
*/
static ngx_int_t ngx_http_process_request_header(ngx_http_request_t *r)
{
u_char *ua, *user_agent;
size_t len;
ngx_uint_t i;
ngx_http_server_name_t *name;
ngx_http_core_srv_conf_t *cscf;
ngx_http_core_loc_conf_t *clcf;
i
全部评论 (0)
还没有任何评论哟~
