Mercurial > hg > nginx
annotate src/http/modules/perl/ngx_http_perl_module.h @ 681:7e24168b0853 release-0.4.0
nginx-0.4.0-RELEASE import
*) Change in internal API: the HTTP modules initialization was moved
from the init module phase to the HTTP postconfiguration phase.
*) Change: now the request body is not read beforehand for the
ngx_http_perl_module: it's required to start the reading using the
$r->has_request_body method.
*) Feature: the ngx_http_perl_module supports the DECLINED return code.
*) Feature: the ngx_http_dav_module supports the incoming "Date" header
line for the PUT method.
*) Feature: the "ssi" directive is available inside the "if" block.
*) Bugfix: a segmentation fault occurred if there was an "index"
directive with variables and the first index name was without
variables; the bug had appeared in 0.1.29.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 30 Aug 2006 10:39:17 +0000 |
parents | f971949ffb58 |
children | a452a0e13539 |
rev | line source |
---|---|
599 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_HTTP_PERL_MODULE_H_INCLUDED_ | |
8 #define _NGX_HTTP_PERL_MODULE_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 #include <ngx_http.h> | |
14 | |
15 #include <EXTERN.h> | |
16 #include <perl.h> | |
17 | |
18 | |
19 typedef ngx_http_request_t *nginx; | |
20 | |
21 typedef struct { | |
22 PerlInterpreter *perl; | |
23 | |
633 | 24 ngx_str_t filename; |
599 | 25 ngx_str_t redirect_uri; |
26 ngx_str_t redirect_args; | |
681 | 27 SV *next; |
28 | |
29 ngx_uint_t done; /* unsigned done:1; */ | |
599 | 30 |
617 | 31 #if (NGX_HTTP_SSI) |
599 | 32 ngx_http_ssi_ctx_t *ssi; |
617 | 33 #endif |
599 | 34 } ngx_http_perl_ctx_t; |
35 | |
36 | |
37 extern ngx_module_t ngx_http_perl_module; | |
38 | |
39 | |
40 /* | |
41 * workaround for "unused variable `Perl___notused'" warning | |
42 * when building with perl 5.6.1 | |
43 */ | |
44 #ifndef PERL_IMPLICIT_CONTEXT | |
45 #undef dTHXa | |
46 #define dTHXa(a) | |
47 #endif | |
48 | |
49 | |
633 | 50 extern void boot_DynaLoader(pTHX_ CV* cv); |
599 | 51 |
52 | |
681 | 53 void ngx_http_perl_handle_request(ngx_http_request_t *r); |
54 | |
55 | |
599 | 56 #endif /* _NGX_HTTP_PERL_MODULE_H_INCLUDED_ */ |