HttpHeaderRule class final
Headers to add to the HTTP requests whose URL matches a pattern.
See mln_http_header_rule in the
C API reference.
Constructors
-
HttpHeaderRule({ResourceKindFlag kinds = ResourceKindFlag.none, UrlMatchFlag flags = UrlMatchFlag.none, String url = '', List<
HttpHeader> headers = const []})
Properties
- flags → UrlMatchFlag
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ List<
HttpHeader> -
final
- kinds → ResourceKindFlag
-
The kinds of resource that the rule covers. Zero covers every kind.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
final
Methods
-
copyWith(
{ResourceKindFlag? kinds, UrlMatchFlag? flags, String? url, List< HttpHeader> ? headers}) → HttpHeaderRule - A copy of this value with the given members replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited