code: private void parseRequest(HttpMethod httpMethod, HttpRequestBase request, JsonObject payload) throws MPException {
          this.method = httpMethod.toString();
          this.url = request.getURI().toString();
          if (payload != null) {
              this.payload = payload.toString();
          }
      }
docs: Parses the http request in a custom MPApiResponse object.
  
  @param httpMethod            enum with the method executed
  @param request               HttpRequestBase object
  @param payload               JsonObject with the payload
  @throws MPException