ContentDispositionHeader class

Specifies the content disposition header of a mime part. Compare https://tools.ietf.org/html/rfc2183 for details.

Inheritance

Constructors

ContentDispositionHeader(String rawValue)
Creates a new disposition header
ContentDispositionHeader.attachment({String? filename, DateTime? creationDate, DateTime? modificationDate, DateTime? readDate, int? size})
Convenience method to create a Content-Disposition: attachment header
ContentDispositionHeader.from(ContentDisposition disposition, {String? filename, DateTime? creationDate, DateTime? modificationDate, DateTime? readDate, int? size})
Convenience method to create a Content-Disposition header with the given disposition.
ContentDispositionHeader.inline({String? filename, DateTime? creationDate, DateTime? modificationDate, DateTime? readDate, int? size})
Convenience method to create a Content-Disposition: inline header

Properties

creationDate DateTime?
The optional creation date parameter
getter/setter pair
disposition ContentDisposition
The disposition
getter/setter pair
dispositionText String
The disposition as text
getter/setter pair
filename String?
The optional file name parameter
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
modificationDate DateTime?
The optional modification date parameter
getter/setter pair
parameters Map<String, String>
Any parameters, for example charset, boundary, filename, etc
finalinherited
rawValue String
The raw value of the header
getter/setter pairinherited
readDate DateTime?
The optional last accessed date parameter
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The optional size in bytes parameter
getter/setter pair
value String
The value without parameters as specified in the header, eg text/plain for a Content-Type header.
getter/setter pairinherited

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.
inherited
render([StringBuffer? buffer]) String
Renders this header into the given buffer.
renderDateField(String name, DateTime? date, StringBuffer buffer) → void
Render the field with the given name and date value to the buffer.
inherited
renderField(String name, String? value, StringBuffer buffer, {bool quote = false}) → void
Renders the field with the given name and value to the buffer.
inherited
renderRemainingFields(StringBuffer buffer, {List<String>? exclude}) → void
Renders all remaining fields
inherited
setParameter(String name, String quotedValue) → void
Adds a new or replaces the existing parameter name with the value quotedValue.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited