ForwardedIdentifier class final
Represents a node identifier in the Forwarded header, as per RFC 7239 Section 6. This can be an IP address (v4 or v6), "unknown", or an obfuscated identifier, optionally with a port.
Constructors
- ForwardedIdentifier(String identifier, [String? port])
-
const
- ForwardedIdentifier.parse(String value)
-
Parses a string value (which should be unquoted if it was a quoted-string)
into a ForwardedIdentifier.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- identifier → String
-
The main identifier part (e.g., "192.0.2.43", "
2001:db8::1", "unknown", "_obfuscated").final - port → String?
-
The optional port part (e.g., "8080", "_obfport").
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
toValueString(
) → String - Returns the string representation of this node as it would appear as a value in a forwarded-pair (before potential quoting).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override