implement httpkernelinterface on router.