Skip to content

Initializer

init(from:)

Initializes a ContentDisposition by parsing a raw header field value.
init(from field: HTTPFields.Value) throws(ContentDisposition.Error)

Parameters

field

The raw Content-Disposition header field value.

Discussion

Throws

ContentDisposition.Error if the header has an invalid format, contains an unrecognized disposition type, or is missing required fields.