Back to Kitura

Part

docs/docsets/Kitura.docset/Contents/Resources/Documents/Structs/Part.html

3.0.11.2 KB
Original Source

Part

public struct Part

A part of a parsed multi-part form body.

`

                name
                `

The name attribute of the part.

Declaration

Swift

public internal(set) var name: String { get }

`

                filename
                `

The filename attribute of the part.

Declaration

Swift

public internal(set) var filename: String { get }

`

                type
                `

Content type of the data in the part.

Declaration

Swift

public internal(set) var type: String { get }

`

                headers
                `

A dictionary of the headers: Content-Type, Content-Disposition, Content-Transfer-Encoding.

Declaration

Swift

public internal(set) var headers: [Part.HeaderType : String] { get }

`

                body
                `

The contents of the part.

Declaration

Swift

public internal(set) var body: ParsedBody { get }

`

                HeaderType
                `

Possible header types that can be found in a part of multi-part body.

See more

Declaration

Swift

public enum HeaderType