aUriWith function

Matcher aUriWith({
  1. Object? scheme,
  2. Object? host,
  3. Object? port,
  4. Object? path,
  5. Object? pathSegments,
  6. Object? query,
  7. Object? queryParams,
})

Implementation

Matcher aUriWith({
  Object? scheme,
  Object? host,
  Object? port,
  Object? path,
  Object? pathSegments,
  Object? query,
  Object? queryParams,
}) {
  return allOf([
    isUri(),
    if (scheme != null) withScheme(wrapMatcher(scheme)),
    if (host != null) withHost(wrapMatcher(host)),
    if (port != null) withPort(wrapMatcher(port)),
    if (path != null) withPath(wrapMatcher(path)),
    if (pathSegments != null) withPathSegments(wrapMatcher(pathSegments)),
    if (query != null) withQueryString(wrapMatcher(query)),
    if (queryParams != null) withQueryParams(wrapMatcher(queryParams)),
  ]);
}