ParameterizedHeader class
A parameter that may contain additional parameters
- Implementers
Constructors
- ParameterizedHeader(String rawValue)
- Creates a new header with the given rawValue
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
parameters
→ Map<
String, String> -
Any parameters, for example charset, boundary, filename, etc
final
- rawValue ↔ String
-
The raw value of the header
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ String
-
The value without parameters as specified in the header,
eg
text/plain
for aContent-Type
header.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeQuotes(
String value) → String -
Removes any double-quotes from the
value
when present. -
renderDateField(
String name, DateTime? date, StringBuffer buffer) → void -
Render the field with the given
name
anddate
value to thebuffer
. -
renderField(
String name, String? value, StringBuffer buffer, {bool quote = false}) → void -
Renders the field with the given
name
andvalue
to thebuffer
. -
renderRemainingFields(
StringBuffer buffer, {List< String> ? exclude}) → void - Renders all remaining fields
-
setParameter(
String name, String quotedValue) → void -
Adds a new or replaces the existing parameter
name
with the valuequotedValue
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited