rewrite register hook func before request phase (nr is not using request_rec) with macro
rewrite register hook func with c macro