Skip to content
Vapor Week is coming 14th September!

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

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

  • case 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.
  • case 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.
  • case 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