Skip to content

Enumeration

ContentDisposition.DispositionType

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

Topics

Enumeration Cases

  • ContentDisposition.DispositionType.attachment
    Indicates the content should be downloaded and saved locally rather than displayed. Attachment is commonly used for file downloads where the user is expected to save the content rather than view it in the browser or application.
  • ContentDisposition.DispositionType.formData
    Indicates this part is a form field in a multipart/form-data submission. This is the standard disposition type used in HTML form submissions.
  • ContentDisposition.DispositionType.inline
    Indicates the content should be displayed inline within the context it was received. Inline content is typically rendered directly within a browser window or application view, rather than requiring a separate download step.

Initializers

Relationships

Conforms To

  • Swift.Equatable
  • Swift.Hashable
  • Swift.RawRepresentable
  • Swift.Sendable
  • Swift.SendableMetatype