Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl
Re: Can I somehow call ap_make_content_type
 

Index | Next | Previous | View Flat


torsten.foertsch at gmx

Apr 29, 2012, 5:31 AM


Views: 543
Permalink
Re: Can I somehow call ap_make_content_type [In reply to]

On Sunday, 29 April 2012 10:45:41 Joachim Zobel wrote:
> Is it possible to access a function (ap_make_content_type) that is only
> present in xs/tables/current/Apache2/FunctionTable.pm and
> xs/maps/apache2_functions.map but not wrapped any further?

!MODULE=Apache2::HTTPCore
>ap_process_request
>ap_make_content_type
>ap_core_reorder_directories
>ap_index_of_response

It should be enough to change that to

MODULE=Apache2::HTTPCore PACKAGE=Apache2::RequestRec
>ap_process_request
ap_make_content_type
>ap_core_reorder_directories
>ap_index_of_response

Then "perl Makefile.PL && make test"

This builds a new module Apache2::HTTPCore which implements one method:

use Apache2::HTTPCore ();
$newtype=$r->make_content_type($type);

Torsten Förtsch

--
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

Subject User Time
Can I somehow call ap_make_content_type jzobel at heute-morgen Apr 29, 2012, 1:45 AM
    Re: Can I somehow call ap_make_content_type torsten.foertsch at gmx Apr 29, 2012, 5:31 AM
        Re: Can I somehow call ap_make_content_type jzobel at heute-morgen Apr 29, 2012, 5:44 AM
        Re: Can I somehow call ap_make_content_type jzobel at heute-morgen Apr 29, 2012, 6:07 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.