Skip to content

class MultipartSection

cangjie
public class MultipartSection

功能:表示一个 multipart 分段。

成员概览

成员功能
let body表示当前分段的正文流。
let headers表示当前分段的头集合。
let baseStreamOffset返回当前分段在底层流中的起始偏移。
prop contentType返回当前分段的 Content-Type 标头值。
prop contentDisposition返回当前分段的 Content-Disposition 标头值。

let body

cangjie
public let body: MultipartReaderStream

功能:表示当前分段的正文流。

类型:MultipartReaderStream

let headers

cangjie
public let headers: HashMap<String, StringValues>

功能:表示当前分段的头集合。

类型:HashMap<String, StringValues>

let baseStreamOffset

cangjie
public let baseStreamOffset: ?Int64

功能:返回当前分段在底层流中的起始偏移。

类型:?Int64

prop contentType

cangjie
public prop contentType: ?String

功能:返回当前分段的 Content-Type 标头值。

类型:?String

prop contentDisposition

cangjie
public prop contentDisposition: ?String

功能:返回当前分段的 Content-Disposition 标头值。

类型:?String