Esteban Pizzini wrote:
Hi,

Anybody can explain me what map_to_storage hook does?? or where can I find
and example of its use??
Thank You!,
Esteban


One use of map_to_storage is to bypass directory walk and file walk if your handler module -knows for certain- that the request is not being served out of the Apache file space. Your module would register a translate_name hook, a map_to_storage hook and a handler. It inspects the URL in translate_name then decides whether it will serve the content or not. If it decides it will serve its own content (but not out of the Apache file system) your module drops a hint in r->request_config (from translate_name) that map_to_storage will look for. If map_to_storage sees the hint, it returns OK which causes the core_map_to_storage hook to be bypassed. At this point, your handler dang well better not DECLINE the request if it decided in translate_name that it was going to serve the request.

Bill



Reply via email to