Connect middleware for HTTP request/reponse interception.