code: private boolean shouldPrettyPrint(HttpRequest request) {
      QueryStringDecoder decoder = new QueryStringDecoder(request.getUri(), Charsets.UTF_8, true, 2);
      Map<String, List<String>> parameters = decoder.parameters();
      if (parameters.containsKey(PP_PARAMETER)) {
        return parseBoolean(parameters.get(PP_PARAMETER).get(0));
      } else if (parameters.containsKey(PRETTY_PRINT_PARAMETER)) {
        return parseBoolean(parameters.get(PRETTY_PRINT_PARAMETER).get(0));
      }
      return true;
    }
docs: Determines whether the response to the request should be pretty-printed.
  
  @param request the HTTP request.
  @return {@code true} if the response should be pretty-printed.