docs: HttpConnection asRequest() {
          DatabaseURIHelper builder = getViewURIBuilder();
          for (Map.Entry<String, Object> queryParameter : processParameters(Parameter.Type
                  .QUERY_PARAMETER).entrySet()) {
              builder.query(queryParameter.getKey(), queryParameter.getValue());
          }
          Map<String, Object> parameters = processParameters(Parameter.Type.BODY_PARAMETER);
          // if there are no parameters in the body, we do a GET, otherwise we do a POST
          if (parameters == null || parameters.isEmpty()) {
              return Http.GET(builder.build());
          }
          JsonElement body = gson.toJsonTree(parameters);
          HttpConnection conn = Http.POST(builder.build(),  "application/json");
          conn.setRequestBody(body.toString());
          return conn;
      }