Add terminating HTTP middleware.