# HG changeset patch # User Vladimir Homutov # Date 1352706320 0 # Node ID f0e3d07c66d8a9b25e41fd50507dda5e143795d5 # Parent 1f58eb09aa8cc1858e2895e9ec688d10ed9f83f9 Documented $r->log_error method, redirection limitation, removed outdated info. diff -r 1f58eb09aa8c -r f0e3d07c66d8 xml/en/docs/http/ngx_http_perl_module.xml --- a/xml/en/docs/http/ngx_http_perl_module.xml Mon Nov 12 07:14:08 2012 +0000 +++ b/xml/en/docs/http/ngx_http_perl_module.xml Mon Nov 12 07:45:20 2012 +0000 @@ -10,7 +10,7 @@ + rev="2">
@@ -359,6 +359,18 @@ does an internal redirect to the specified uri. An actual redirect happens after the Perl handler has completed. + +Redirections to named locations are not currently supported. + + + +$r->log_error(errno, +message) + +writes the specified message into the +. +If errno is non-zero, an error code and its description +will be appended to the message. $r->print(text, ...) @@ -412,13 +424,6 @@ specify an initial offset and length of data to be transmitted. The actual data transmission happens after the Perl handler has completed. -It should be noted that when using this method in a subrequest, -and -is enabled, the file content will not be passed through the -gzip, -SSI, and -charset -filters. diff -r 1f58eb09aa8c -r f0e3d07c66d8 xml/ru/docs/http/ngx_http_perl_module.xml --- a/xml/ru/docs/http/ngx_http_perl_module.xml Mon Nov 12 07:14:08 2012 +0000 +++ b/xml/ru/docs/http/ngx_http_perl_module.xml Mon Nov 12 07:45:20 2012 +0000 @@ -10,7 +10,7 @@ + rev="2">
@@ -360,6 +360,18 @@ делает внутреннее перенаправление на указанный uri. Перенаправление происходит уже после завершения обработчика Perl. + +На данный момент перенаправления в именованные location’ы не поддерживаются. + + + +$r->log_error(код_ошибки, +сообщение) + +записывает указанное сообщение в +. +Если код_ошибки ненулевой, то к сообщению будет добавлен +код ошибки и её описание. $r->print(текст, ...) @@ -413,14 +425,6 @@ задают начальное смещение и длину передаваемых данных. Непосредственно передача данных происходит уже после завершения обработчика Perl. -Необходимо учитывать, что при использовании -этого метода в подзапросе и включённой директиве - -содержимое файла не будет проходить через -gzip, -SSI и -charset -фильтры.