Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Structure

ContentDisposition

Represents a parsed Content-Disposition header field for multipart messages.
struct ContentDisposition

Overview

The Content-Disposition header is defined in RFC 6266 (HTTP) and RFC 7578 (multipart/form-data) and provides metadata about each part, including:

  • The disposition type (form-data, attachment, inline)

  • The “name” parameter that identifies the form field (required for form-data)

  • An optional “filename” parameter for file uploads

  • Any additional custom parameters

Topics

Structures

  • struct Error
    Errors that can occur when parsing Content-Disposition headers.

Initializers

Instance Properties

Enumerations

  • enum DispositionType
    The type of content disposition as defined in HTTP standards. Each disposition type indicates a different way the content should be handled.

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype