models: added method to handle requests for document with input as
InputStreamReader