code: public String retrieveRecordedRequests(HttpRequest httpRequest, Format format) {
          HttpResponse httpResponse = sendRequest(
              request()
                  .withMethod("PUT")
                  .withPath(calculatePath("retrieve"))
                  .withQueryStringParameter("type", RetrieveType.REQUESTS.name())
                  .withQueryStringParameter("format", format.name())
                  .withBody(httpRequest != null ? httpRequestSerializer.serialize(httpRequest) : "", StandardCharsets.UTF_8)
          );
          return httpResponse.getBodyAsString();
      }
docs: Retrieve the recorded requests that match the httpRequest parameter, use null for the parameter to retrieve all requests
  
  @param httpRequest the http request that is matched against when deciding whether to return each request, use null for the parameter to retrieve for all requests
  @param format      the format to retrieve the expectations, either JAVA or JSON
  @return an array of all requests that have been recorded by the MockServer in the order they have been received and including duplicates where the same request has been received multiple times