HttpRoute_RouteMatch constructor
HttpRoute_RouteMatch({
- String? fullPathMatch,
- String? prefixMatch,
- String? regexMatch,
- bool? ignoreCase,
- Iterable<
HttpRoute_HeaderMatch> ? headers, - Iterable<
HttpRoute_QueryParameterMatch> ? queryParameters,
Implementation
factory HttpRoute_RouteMatch({
$core.String? fullPathMatch,
$core.String? prefixMatch,
$core.String? regexMatch,
$core.bool? ignoreCase,
$core.Iterable<HttpRoute_HeaderMatch>? headers,
$core.Iterable<HttpRoute_QueryParameterMatch>? queryParameters,
}) {
final $result = create();
if (fullPathMatch != null) {
$result.fullPathMatch = fullPathMatch;
}
if (prefixMatch != null) {
$result.prefixMatch = prefixMatch;
}
if (regexMatch != null) {
$result.regexMatch = regexMatch;
}
if (ignoreCase != null) {
$result.ignoreCase = ignoreCase;
}
if (headers != null) {
$result.headers.addAll(headers);
}
if (queryParameters != null) {
$result.queryParameters.addAll(queryParameters);
}
return $result;
}