Extracted interface to read data from request.