mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
add files missed in the previuos commit
This commit is contained in:
parent
4c1b0770ca
commit
b2ee47c0c7
@ -865,7 +865,7 @@ ngx_http_core_generic_phase(ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
|
||||
|
||||
/*
|
||||
* generic phase checker,
|
||||
* used by the post read, server rewrite, rewrite, and pre-access phases
|
||||
* used by the post read and pre-access phases
|
||||
*/
|
||||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
@ -895,6 +895,29 @@ ngx_http_core_generic_phase(ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
|
||||
}
|
||||
|
||||
|
||||
ngx_int_t
|
||||
ngx_http_core_rewrite_phase(ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
|
||||
{
|
||||
ngx_int_t rc;
|
||||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"rewrite phase: %ui", r->phase_handler);
|
||||
|
||||
rc = ph->handler(r);
|
||||
|
||||
if (rc == NGX_DECLINED) {
|
||||
r->phase_handler++;
|
||||
return NGX_AGAIN;
|
||||
}
|
||||
|
||||
/* rc == NGX_OK || rc == NGX_ERROR || rc == NGX_HTTP_... */
|
||||
|
||||
ngx_http_finalize_request(r, rc);
|
||||
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
|
||||
ngx_int_t
|
||||
ngx_http_core_find_config_phase(ngx_http_request_t *r,
|
||||
ngx_http_phase_handler_t *ph)
|
||||
|
@ -429,6 +429,8 @@ struct ngx_http_location_tree_node_s {
|
||||
void ngx_http_core_run_phases(ngx_http_request_t *r);
|
||||
ngx_int_t ngx_http_core_generic_phase(ngx_http_request_t *r,
|
||||
ngx_http_phase_handler_t *ph);
|
||||
ngx_int_t ngx_http_core_rewrite_phase(ngx_http_request_t *r,
|
||||
ngx_http_phase_handler_t *ph);
|
||||
ngx_int_t ngx_http_core_find_config_phase(ngx_http_request_t *r,
|
||||
ngx_http_phase_handler_t *ph);
|
||||
ngx_int_t ngx_http_core_post_rewrite_phase(ngx_http_request_t *r,
|
||||
|
Loading…
Reference in New Issue
Block a user