Middleware forwards client's requests to server