Add HttpKernel middleware