3.12.17. MapResponseHook Previous topic Parent topic Child topic Next topic

This optional parameter defines a Perl hook for pre-processing HTTP server responses. Defaults to not set. The hook is passed the following arguments:
  • Reference to a hash with server response and response related information
MapResponseHook has full access to a complete server response. This allows the hook to do any local modifications that are needed.
# Do some pre-processing before passing response to upper layers.
MapResponseHook file:"%D/http-map-response-hook.pl"