code: protected String readInput(HttpServletRequest request) throws ServletException, IOException {
          StringBuilder input = new StringBuilder();
          String line = null;
          while ((line = request.getReader().readLine()) != null) {
              input.append(line).append("\n");
          }
          return input.toString();
      }
docs: Reads the body of the {@code response}.
  
  @param request - an HttpServletRequest object that contains the request the client has made of the servlet
  
  @return the contents of the {@code response}
  
  @throws IOException      - if an input or output error is detected when the servlet handles the request
  @throws ServletException - if the request for the POST could not be handled