HttpRule constructor
HttpRule({})
Implementation
factory HttpRule({
$core.String? selector,
$core.String? get,
$core.String? put,
$core.String? post,
$core.String? delete,
$core.String? patch,
$core.String? body,
CustomHttpPattern? custom,
$core.Iterable<HttpRule>? additionalBindings,
$core.String? responseBody,
}) {
final _result = create();
if (selector != null) {
_result.selector = selector;
}
if (get != null) {
_result.get = get;
}
if (put != null) {
_result.put = put;
}
if (post != null) {
_result.post = post;
}
if (delete != null) {
_result.delete = delete;
}
if (patch != null) {
_result.patch = patch;
}
if (body != null) {
_result.body = body;
}
if (custom != null) {
_result.custom = custom;
}
if (additionalBindings != null) {
_result.additionalBindings.addAll(additionalBindings);
}
if (responseBody != null) {
_result.responseBody = responseBody;
}
return _result;
}