mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 11:38:36 +08:00
$r->status
This commit is contained in:
parent
5a4344f5f8
commit
b6ef94f49b
@ -93,6 +93,22 @@ ngx_http_perl_output(ngx_http_request_t *r, ngx_buf_t *b)
|
||||
MODULE = nginx PACKAGE = nginx
|
||||
|
||||
|
||||
void
|
||||
status(r, code)
|
||||
CODE:
|
||||
|
||||
ngx_http_request_t *r;
|
||||
|
||||
ngx_http_perl_set_request(r);
|
||||
|
||||
r->headers_out.status = SvIV(ST(1));
|
||||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"perl status: %d", r->headers_out.status);
|
||||
|
||||
XSRETURN_UNDEF;
|
||||
|
||||
|
||||
void
|
||||
send_http_header(r, ...)
|
||||
CODE:
|
||||
|
Loading…
Reference in New Issue
Block a user