Changes between Version 17 and Version 18 of ModParrotHLLDocs

Show
Ignore:
Timestamp:
12/25/08 21:45:50 (6 years ago)
Author:
jhorwitz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ModParrotHLLDocs

    v17 v18  
    254254=== The Context Object === 
    255255 
    256 You might be wondering where metahandlers get information like the previously mentioned Apache::RequestRec object.  mod_parrot passes a single {{{ModParrot;Context}}} object as the lone argument to every metahandler.  This "context" object contains methods for accessing information relevant to the particular phase of a metahandler.  During the response phase for instance, the {{{request_rec}}} method returns the current {{{Apache;RequestRec}}} object.  That method would return a NULL PMC during a phase like {{{open_logs}}}. 
     256You might be wondering where metahandlers get information like the previously mentioned {{{Apache::RequestRec}}} object.  mod_parrot passes a single {{{ModParrot;Context}}} object as the lone argument to every metahandler.  This "context" object contains methods for accessing information relevant to the particular phase of a metahandler.  During the response phase for instance, the {{{request_rec}}} method returns the current {{{Apache;RequestRec}}} object.  That method would return a NULL PMC during a phase like {{{open_logs}}}. 
    257257 
    258258{{{ModParrot;Context}}} provides the following methods: