home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-perl-addon-1.4.9-installer.exe / ServerRec.pm < prev    next >
Encoding:
Perl POD Document  |  2004-09-23  |  17.3 KB  |  885 lines

  1. # /*
  2. #  * *********** WARNING **************
  3. #  * This file generated by ModPerl::WrapXS/0.01
  4. #  * Any changes made here will be lost
  5. #  * ***********************************
  6. #  * 01: lib/ModPerl/Code.pm:701
  7. #  * 02: O:\147xampp\sources\mod_perl-1.99_16\blib\lib/ModPerl/WrapXS.pm:584
  8. #  * 03: O:\147xampp\sources\mod_perl-1.99_16\blib\lib/ModPerl/WrapXS.pm:1100
  9. #  * 04: Makefile.PL:335
  10. #  * 05: Makefile.PL:283
  11. #  * 06: Makefile.PL:51
  12. #  */
  13.  
  14.  
  15. package Apache::ServerRec;
  16.  
  17. use strict;
  18. use warnings FATAL => 'all';
  19.  
  20.  
  21.  
  22. use Apache::XSLoader ();
  23. our $VERSION = '0.01';
  24. Apache::XSLoader::load __PACKAGE__;
  25.  
  26.  
  27.  
  28. 1;
  29. __END__
  30.  
  31. =head1 NAME
  32.  
  33. Apache::ServerRec - Perl API for Apache server record accessors
  34.  
  35.  
  36.  
  37.  
  38. =head1 Synopsis
  39.  
  40.   use Apache::ServerRec ();
  41.   
  42.   $error_fname = $s->error_fname();
  43.   
  44.   $is_virtual = $s->is_virtual();
  45.   
  46.   $keep_alive         = $s->keep_alive();
  47.   $keep_alive_max     = $s->keep_alive_max();
  48.   $keep_alive_timeout = $s->keep_alive_timeout();
  49.   
  50.   $limit_req_fields    = $s->limit_req_fields();
  51.   $limit_req_fieldsize = $s->limit_req_fieldsize();
  52.   $limit_req_line      = $s->limit_req_line();
  53.   
  54.   $path = $s->path();
  55.   
  56.   $hostname = $s->server_hostname();
  57.   $port     = $s->port();
  58.   
  59.   $server_admin = $s->server_admin();
  60.   
  61.   $proc = $s->process();
  62.   
  63.   $timeout  = $s->timeout();
  64.   $loglevel = $s->loglevel();
  65.   
  66.   my $server = Apache->server;
  67.   my $vhosts = 0;
  68.   for (my $s = $server->next; $s; $s = $s->next) {
  69.       $vhosts++;
  70.   }
  71.   print "There are $vhosts virtual hosts";
  72.  
  73.  
  74.  
  75. =head1 Description
  76.  
  77. C<Apache::ServerRec> provides the Perl API for Apache server_rec
  78. object.
  79.  
  80. C<L<Apache::ServerUtil|docs::2.0::api::Apache::ServerUtil>> provides
  81. an extra functionality.
  82.  
  83.  
  84.  
  85.  
  86.  
  87. =head1 API
  88.  
  89. C<Apache::ServerRec> provides the following functions and/or methods:
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96. =head2 C<error_fname>
  97.  
  98. Get/set the C<ErrorLog> file value (e.g. F<logs/error_log>)
  99.  
  100.   $error_fname      = $s->error_fname();
  101.   $prev_error_fname = $s->error_fname($new_error_fname);
  102.  
  103. =over 4
  104.  
  105. =item obj: C<$s>
  106. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  107.  
  108. =item opt arg1: C<$new_error_fname> ( string )
  109.  
  110. If passed, sets the new value for C<ErrorLog>
  111.  
  112. Note the L<limited functionality under threaded
  113. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  114.  
  115. =item ret: C<$error_fname> ( string )
  116.  
  117. Returns the C<ErrorLog> value setting.
  118.  
  119. If C<$new_error_fname> is passed returns the setting before the change.
  120.  
  121. =item since: 1.99_15
  122.  
  123. =back
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131. =head2 C<is_virtual>
  132.  
  133. Test whether C<$s> is a virtual host object
  134.  
  135.   $is_virtual = $s->is_virtual();
  136.  
  137. =over 4
  138.  
  139. =item obj: C<$s>
  140. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  141.  
  142. =item ret: C<$is_virtual> ( boolean )
  143.  
  144. Returns the is_virtual setting.
  145.  
  146. If C<$new_is_virtual> is passed, returns the setting before the
  147. change.
  148.  
  149. =item since: 1.99_15
  150.  
  151. =back
  152.  
  153. Example:
  154.  
  155.   print "This is a virtual host" if $s->is_virtual();
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162. =head2 C<keep_alive>
  163.  
  164. Get/set the C<KeepAlive> setting, which specifies whether Apache
  165. should accept more than one request over the same connection from the
  166. same client.
  167.  
  168.   $keep_alive      = $s->keep_alive();
  169.   $prev_keep_alive = $s->keep_alive($new_keep_alive);
  170.  
  171. =over 4
  172.  
  173. =item obj: C<$s>
  174. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  175.  
  176. =item opt arg1: C<$new_keep_alive> ( boolean )
  177.  
  178. If passed, sets the new keep_alive.
  179.  
  180. Note the L<limited functionality under threaded
  181. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  182.  
  183. =item ret: C<$keep_alive> ( boolean )
  184.  
  185. Returns the C<KeepAlive> setting.
  186.  
  187. If C<$new_keep_alive> is passed, returns the setting before the
  188. change.
  189.  
  190. =item since: 1.99_15
  191.  
  192. =back
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200. =head2 C<keep_alive_max>
  201.  
  202. Get/set the C<MaxKeepAliveRequest> setting, which specifies the
  203. maximum number of requests Apache will serve over a C<KeepAlive>
  204. connection.
  205.  
  206.   $keep_alive_max      = $s->keep_alive_max();
  207.   $prev_keep_alive_max = $s->keep_alive_max($new_keep_alive_max);
  208.  
  209. =over 4
  210.  
  211. =item obj: C<$s>
  212. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  213.  
  214. =item opt arg1: C<$new_keep_alive_max> ( integer )
  215.  
  216. If passed, sets the new keep_alive_max.
  217.  
  218. Note the L<limited functionality under threaded
  219. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  220.  
  221. =item ret: C<$keep_alive_max> ( integer )
  222.  
  223. Returns the keep_alive_max setting.
  224.  
  225. If C<$new_keep_alive_max> is passed, returns the setting before the
  226. change.
  227.  
  228. =item since: 1.99_15
  229.  
  230. =back
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237. =head2 C<keep_alive_timeout>
  238.  
  239. Get/set the C<KeepAliveTimeout> setting (in microsecs), which
  240. specifies how long Apache will wait for another request before
  241. breaking a C<KeepAlive> connection.
  242.  
  243.   $keep_alive_timeout      = $s->keep_alive_timeout();
  244.   $prev_keep_alive_timeout = $s->keep_alive_timeout($new_timeout);
  245.  
  246. =over 4
  247.  
  248. =item obj: C<$s>
  249. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  250.  
  251. =item opt arg1: C<$new_keep_alive_timeout> ( integer )
  252.  
  253. The expected value is in microsecs.
  254.  
  255. If passed, sets the new C<KeepAlive> timeout.
  256.  
  257. Note the L<limited functionality under threaded
  258. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  259.  
  260. =item ret: C<$keep_alive_timeout> ( integer )
  261.  
  262. Returns the C<KeepAlive> timeout value (in microsecs).
  263.  
  264. If C<$new_timeout> is passed, returns the setting before the change.
  265.  
  266. =item since: 1.99_15
  267.  
  268. =back
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275. =head2 C<limit_req_fields>
  276.  
  277. Get/set limit on number of request header fields
  278.  
  279.   $limit_req_fields      = $s->limit_req_fields();
  280.   $prev_limit_req_fields = $s->limit_req_fields($new_limit_req_fields);
  281.  
  282. =over 4
  283.  
  284. =item obj: C<$s>
  285. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  286.  
  287. =item opt arg1: C<$new_limit_req_fields> ( integer )
  288.  
  289. If passed, sets the new request headers number limit.
  290.  
  291. Note the L<limited functionality under threaded
  292. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  293.  
  294. =item ret: C<$limit_req_fields> ( integer )
  295.  
  296. Returns the request headers number limit.
  297.  
  298. If C<$new_limit_req_fields> is passed, returns the setting before the
  299. change.
  300.  
  301. =item since: 1.99_15
  302.  
  303. =back
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310. =head2 C<limit_req_fieldsize>
  311.  
  312. Get/set limit on size of any request header field
  313.  
  314.   $limit_req_fieldsize = $s->limit_req_fieldsize();
  315.   $prev_limit          = $s->limit_req_fieldsize($new_limit);
  316.  
  317. =over 4
  318.  
  319. =item obj: C<$s>
  320. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  321.  
  322. =item opt arg1: C<$new_limit_req_fieldsize> ( integer )
  323.  
  324. If passed, sets the new request header size limit.
  325.  
  326. Note the L<limited functionality under threaded
  327. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  328.  
  329. =item ret: C<$limit_req_fieldsize> ( integer )
  330.  
  331. Returns the request header size limit.
  332.  
  333. If C<$new_limit> is passed, returns the setting before the change.
  334.  
  335. =item since: 1.99_15
  336.  
  337. =back
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344. =head2 C<limit_req_line>
  345.  
  346. Get/set limit on size of the HTTP request line
  347.  
  348.   $limit_req_line      = $s->limit_req_line();
  349.   $prev_limit_req_line = $s->limit_req_line($new_limit_req_line);
  350.  
  351. =over 4
  352.  
  353. =item obj: C<$s>
  354. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  355.  
  356. =item opt arg1: C<$new_limit_req_line> ( integer )
  357.  
  358. If passed, sets the new request line limit value.
  359.  
  360. Note the L<limited functionality under threaded
  361. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  362.  
  363. =item ret: C<$limit_req_line> ( integer )
  364.  
  365. Returns the request line limit value
  366.  
  367. If C<$new_limit_req_line> is passed, returns the setting before the
  368. change.
  369.  
  370. =item since: 1.99_15
  371.  
  372. =back
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380. =head2 C<loglevel>
  381.  
  382. Get/set the C<LogLevel> directive value
  383.  
  384.   $loglevel      = $s->loglevel();
  385.   $prev_loglevel = $s->loglevel($new_loglevel);
  386.  
  387. =over 4
  388.  
  389. =item obj: C<$s>
  390. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  391.  
  392. =item opt arg1: C<$new_loglevel> ( C<L<Apache::Const :log
  393. constant|docs::2.0::api::Apache::Const/C__log_>> )
  394.  
  395. If passed, sets a new C<LogLevel> value
  396.  
  397. Note the L<limited functionality under threaded
  398. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  399.  
  400. =item ret: C<$loglevel> ( C<L<Apache::Const :log
  401. constant|docs::2.0::api::Apache::Const/C__log_>> )
  402.  
  403. Returns the C<LogLevel> value as a constant.
  404.  
  405. If C<$new_loglevel> is passed, returns the setting before the change.
  406.  
  407. =item since: 1.99_15
  408.  
  409. =back
  410.  
  411. For example, to set the C<LogLevel> value to C<info>:
  412.  
  413.   use Apache::Const -compile => qw(LOG_INFO);
  414.   $s->loglevel(Apache::LOG_INFO);
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421. =head2 C<next>
  422.  
  423. The next server record in the list (if there are vhosts)
  424.  
  425.   $s_next = $s->next();
  426.  
  427. =over 4
  428.  
  429. =item obj: C<$s>
  430. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  431.  
  432. =item ret: C<$s_next>
  433. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  434.  
  435. =item since: 1.99_15
  436.  
  437. =back
  438.  
  439. For example the following code traverses all the servers, starting
  440. from the base server and continuing to vhost servers, counting all
  441. available vhosts:
  442.  
  443.   use Apache::ServerRec ();
  444.   use Apache::ServerUtil ();
  445.   my $server = Apache->server;
  446.   my $vhosts = 0;
  447.   for (my $s = $server->next; $s; $s = $s->next) {
  448.       $vhosts++;
  449.   }
  450.   print "There are $vhosts virtual hosts";
  451.  
  452.  
  453.  
  454.  
  455.  
  456. =head2 C<path>
  457.  
  458. Get/set pathname for the C<ServerPath> setting
  459.  
  460.   $path      = $s->path();
  461.   $prev_path = $s->path($new_path);
  462.  
  463. =over 4
  464.  
  465. =item obj: C<$s>
  466. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  467.  
  468. =item opt arg1: C<$new_path> ( string )
  469.  
  470. If passed, sets the new path.
  471.  
  472. Note the L<limited functionality under threaded
  473. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  474.  
  475. =item ret: C<$path> ( string )
  476.  
  477. Returns the path setting.
  478.  
  479. If C<$new_path> is passed, returns the setting before the change.
  480.  
  481. =item since: 1.99_15
  482.  
  483. =back
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490. =head2 C<port>
  491.  
  492. Get/set the port value
  493.  
  494.   $port      = $s->port();
  495.   $prev_port = $s->port($new_port);
  496.  
  497. =over 4
  498.  
  499. =item obj: C<$s>
  500. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  501.  
  502. =item opt arg1: C<$new_port> ( integer )
  503.  
  504. If passed, sets the new port.
  505.  
  506. Note the L<limited functionality under threaded
  507. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  508.  
  509. META: I don't think one should be allowed to change port number after
  510. the server has started.
  511.  
  512. =item ret: C<$port> ( integer )
  513.  
  514. Returns the port setting.
  515.  
  516. If C<$new_port> is passed returns the setting before the change.
  517.  
  518. =item since: 1.99_15
  519.  
  520. =back
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527. =head2 C<process>
  528.  
  529. The process this server is running in
  530.  
  531.   $proc = $s->process();
  532.  
  533. =over 4
  534.  
  535. =item obj: C<$s>
  536. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  537.  
  538. =item ret: C<$proc>
  539. ( C<L<Apache::Process object|docs::2.0::api::Apache::Process>> )
  540.  
  541. =item since: 1.99_15
  542.  
  543. =back
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550. =head2 C<server_admin>
  551.  
  552. Get/set the C<ServerAdmin> value
  553.  
  554.   $server_admin      = $s->server_admin();
  555.   $prev_server_admin = $s->server_admin($new_server_admin);
  556.  
  557. =over 4
  558.  
  559. =item obj: C<$s>
  560. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  561.  
  562. =item opt arg1: C<$new_server_admin> ( string )
  563.  
  564. If passed, sets the new C<ServerAdmin> value.
  565.  
  566. Note the L<limited functionality under threaded
  567. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  568.  
  569. =item ret: C<$server_admin> ( string )
  570.  
  571. Returns the C<ServerAdmin> value.
  572.  
  573. If C<$new_server_admin> is passed, returns the setting before the
  574. change.
  575.  
  576. =item since: 1.99_15
  577.  
  578. =back
  579.  
  580.  
  581.  
  582.  
  583.  
  584. =head2 C<server_hostname>
  585.  
  586. Get/set the C<ServerName> value
  587.  
  588.   $server_hostname      = $s->server_hostname();
  589.   $prev_server_hostname = $s->server_hostname($new_server_hostname);
  590.  
  591. =over 4
  592.  
  593. =item obj: C<$s>
  594. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  595.  
  596. =item opt arg1: C<$new_server_hostname> ( string )
  597.  
  598. If passed, sets the C<ServerName> value
  599.  
  600. Note the L<limited functionality under threaded
  601. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  602.  
  603. =item ret: C<$server_hostname> ( string )
  604.  
  605. Returns the C<ServerName> value
  606.  
  607. If C<$new_server_hostname> is passed, returns the setting before the
  608. change.
  609.  
  610. =item since: 1.99_15
  611.  
  612. =back
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620. =head2 C<timeout>
  621.  
  622. Get/set the timeout (C<TimeOut>) (in microsecs), which Apache will
  623. wait for before it gives up doing something
  624.  
  625.   $timeout      = $s->timeout();
  626.   $prev_timeout = $s->timeout($new_timeout);
  627.  
  628. =over 4
  629.  
  630. =item obj: C<$s>
  631. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  632.  
  633. =item opt arg1: C<$new_timeout> ( integer )
  634.  
  635. If passed, sets the new timeout (the value should be in microseconds).
  636.  
  637. Note the L<limited functionality under threaded
  638. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  639.  
  640. =item ret: C<$timeout> ( integer )
  641.  
  642. Returns the timeout setting in microseconds.
  643.  
  644. If C<$new_timeout> is passed, returns the setting before the change.
  645.  
  646. =item since: 1.99_15
  647.  
  648. =back
  649.  
  650. Let us repeat again: the timeout values is microseconds. For example
  651. to set the timeout to 20 secs:
  652.  
  653.   $s->timeout(20_000_000);
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668. =head1 Notes
  669.  
  670.  
  671. =head2 Limited Functionality under Threaded MPMs
  672.  
  673. Note that under threaded MPMs, some of the read/write accessors, will
  674. be able to set values only before threads are spawned (i.e. before the
  675. C<L<ChildInit
  676. phase|docs::2.0::user::handlers::server/C_PerlChildInitHandler_>>).
  677. Therefore if you are developing your application on the non-threaded
  678. MPM, but planning to have it run under threaded mpm, you should not
  679. use those methods to set values after the ChildInit phase.
  680.  
  681. The affected accessor methods are marked as such in their respective
  682. documentation entries.
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691. =head1 Unsupported API
  692.  
  693. C<Apache::ServerRec> also provides auto-generated Perl interface for a
  694. few other methods which aren't tested at the moment and therefore
  695. their API is a subject to change. These methods will be finalized
  696. later as a need arises. If you want to rely on any of the following
  697. methods please contact the L<the mod_perl development mailing
  698. list|maillist::dev> so we can help each other take the steps necessary
  699. to shift the method to an officially supported API.
  700.  
  701.  
  702.  
  703.  
  704. =head2 C<addrs>
  705.  
  706. Get the addrs value
  707.  
  708.   $addrs = $s->addrs();
  709.  
  710. =over 4
  711.  
  712. =item obj: C<$s>
  713. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  714.  
  715. =item ret: C<$addrs>
  716. ( C<L<Apache::ServerAddr|docs::2.0::api::Apache::ServerAddr>> )
  717.  
  718. Returns the addrs setting.
  719.  
  720. =item since: subject to change
  721.  
  722. =back
  723.  
  724. META: this methods returns a vhost-specific Apache::ServerAddr object,
  725. which is not implemented at the moment. See the struct server_addr_rec
  726. entry in httpd-2.0/include/httpd.h for more information. It seems that
  727. most (all?) of the information in that record is available through
  728. other APIs.
  729.  
  730.  
  731.  
  732.  
  733.  
  734. =head2 C<lookup_defaults>
  735.  
  736. Get the lookup_defaults value.  MIME type info, etc., before we start
  737. checking per-directory info.
  738.  
  739.   $lookup_defaults = $s->lookup_defaults();
  740.  
  741. =over 4
  742.  
  743. =item obj: C<$s>
  744. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  745.  
  746. =item ret: C<$lookup_defaults>
  747. ( C<L<Apache::ConfVector|docs::2.0::api::Apache::ConfVector>> )
  748.  
  749. Returns the lookup_defaults setting.
  750.  
  751. =item since: subject to change
  752.  
  753. =back
  754.  
  755.  
  756.  
  757.  
  758.  
  759. =head2 C<module_config>
  760.  
  761. Get config vector containing pointers to modules' per-server config
  762. structures.
  763.  
  764.   $module_config = $s->module_config();
  765.  
  766. =over 4
  767.  
  768. =item obj: C<$s>
  769. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  770.  
  771. =item ret: C<$module_config>
  772. ( C<L<Apache::ConfVector|docs::2.0::api::Apache::ConfVector>> )
  773.  
  774. Returns the module_config setting.
  775.  
  776. =item since: subject to change
  777.  
  778. =back
  779.  
  780.  
  781.  
  782.  
  783. =head2 C<names>
  784.  
  785. Get/set the value(s) for the C<ServerAlias> setting
  786.  
  787.   $names      = $s->names();
  788.   $prev_names = $s->names($new_names);
  789.  
  790. =over 4
  791.  
  792. =item obj: C<$s>
  793. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  794.  
  795. =item opt arg1: C<$new_names>
  796. ( C<L<APR::ArrayHeader|docs::2.0::api::APR::ArrayHeader>> )
  797.  
  798. If passed, sets the new names.
  799.  
  800. Note the L<limited functionality under threaded
  801. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  802.  
  803. =item ret: C<$names> 
  804. ( C<L<APR::ArrayHeader|docs::2.0::api::APR::ArrayHeader>> )
  805.  
  806. Returns the names setting.
  807.  
  808. If C<$new_names> is passed, returns the setting before the change.
  809.  
  810. =item since: 1.99_15
  811.  
  812. =back
  813.  
  814. META: we don't have C<APR::ArrayHeader> yet
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821. =head2 C<wild_names>
  822.  
  823. Wildcarded names for ServerAlias servers
  824.  
  825.   $wild_names      = $s->wild_names();
  826.   $prev_wild_names = $s->wild_names($new_wild_names);
  827.  
  828. =over 4
  829.  
  830. =item obj: C<$s>
  831. ( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  832.  
  833. =item opt arg1: C<$new_wild_names>
  834. ( C<L<APR::ArrayHeader|docs::2.0::api::APR::ArrayHeader>> )
  835.  
  836. If passed, sets the new wild_names.
  837.  
  838. Note the L<limited functionality under threaded
  839. MPMs|/Limited_Functionality_under_Threaded_MPMs>.
  840.  
  841. =item ret: C<$wild_names>
  842. ( C<L<APR::ArrayHeader|docs::2.0::api::APR::ArrayHeader>> )
  843.  
  844. Returns the wild_names setting.
  845.  
  846. If C<$new_wild_names> is passed, returns the setting before the
  847. change.
  848.  
  849. =item since: 1.99_15
  850.  
  851. =back
  852.  
  853. META: we don't have C<APR::ArrayHeader> yet
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861. =head1 See Also
  862.  
  863. L<mod_perl 2.0 documentation|docs::2.0::index>.
  864.  
  865.  
  866.  
  867.  
  868. =head1 Copyright
  869.  
  870. mod_perl 2.0 and its core modules are copyrighted under
  871. The Apache Software License, Version 2.0.
  872.  
  873.  
  874.  
  875.  
  876. =head1 Authors
  877.  
  878. L<The mod_perl development team and numerous
  879. contributors|about::contributors::people>.
  880.  
  881. =cut
  882.  
  883.