Connect middleware to proxy matching requests.