requestMethods property

List<RequestMethod>? get requestMethods

List of HTTP request methods which the rule can match. An empty list is not allowed.

Note: Specifying a requestMethods rule condition will also exclude non-HTTP(s) requests, whereas specifying excludedRequestMethods will not.

Implementation

List<RequestMethod>? get requestMethods => _wrapped.requestMethods?.toDart
    .cast<$js.RequestMethod>()
    .map((e) => RequestMethod.fromJS(e))
    .toList();
set requestMethods (List<RequestMethod>? v)

Implementation

set requestMethods(List<RequestMethod>? v) {
  _wrapped.requestMethods = v?.toJSArray((e) => e.toJS);
}