code: function (pathOrRequestMatcher) {
              return {
                  then: function (sucess, error) {
                      makeRequest(host, port, "/retrieve?type=REQUESTS&format=JSON", addDefaultRequestMatcherHeaders(pathOrRequestMatcher))
                          .then(function (result) {
                              sucess(result.body && JSON.parse(result.body));
                          });
                  }
              };
          }
docs: Retrieve the recorded requests that match the parameter, as follows:
  - use a string value to match on path,
  - use a request matcher object to match on a full request,
  - or use null to retrieve all requests
  
  @param pathOrRequestMatcher  if a string is passed in the value will be treated as the path, however
  if an object is passed in the value will be treated as a full request
  matcher object, if null is passed in it will be treated as match all