gozer 2004/08/22 13:48:12 Modified: src/docs/2.0/api/Apache RequestRec.pod Log: Added $r->content_languages in Apache::RequestRec Revision Changes Path 1.30 +37 -26 modperl-docs/src/docs/2.0/api/Apache/RequestRec.pod Index: RequestRec.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/RequestRec.pod,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- RequestRec.pod 12 Aug 2004 06:19:38 -0000 1.29 +++ RequestRec.pod 22 Aug 2004 20:48:12 -0000 1.30 @@ -33,6 +33,9 @@ # "Content-Encoding" HTTP response header $r->content_encoding("gzip"); + # the languages of the content + $languages = $r->content_languages(); + # "Content-Encoding" HTTP response header $r->content_type('text/plain'); @@ -459,6 +462,40 @@ +=head2 C<content_languages> + +Get/set content languages (the "Content-Language" HTTP header). +Content languages are string like I<"en"> or I<"fr">. + + $languages = $r->content_languages(); + $prev_lang = $r->content_languages($nev_lang); + +=over 4 + +=item obj: C<$r> +( C<L<Apache::RequestRec object|docs::2.0::api::Apache::RequestRec>> ) + +=item opt arg1: C<$new_lang> ( ARRAY ref ) + +If passed, sets the content languages to new values. It must be an +ARRAY ref of language names, like I<"en"> or I<"fr"> + +=item ret: C<$languages> ( ARRAY ref ) + +The current list of content languages. + +If C<$new_lang> is passed, then the previous value is returned. + +=item since: 1.99_16 + +=back + + + + + + + =head2 C<content_type> @@ -1884,32 +1921,6 @@ META: APR::ArrayHeader is not available at the moment - - - - - - -=head2 C<content_languages> - -META: Autogenerated - needs to be reviewed/completed - -Array of strings representing the content languages - - $array_header = $r->content_languages(); - -=over 4 - -=item obj: C<$r> -( C<L<Apache::RequestRec object|docs::2.0::api::Apache::RequestRec>> ) - -=item ret: C<$array_header> ( C<L<APR::ArrayHeader object|docs::2.0::api::APR::ArrayHeader>> ) - -=item since: 1.99_12 - -=back - -META: APR::ArrayHeader is not available at the moment
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]