Skip to content

Instance Method

writeHeaders(_:)

Writes HTTP header fields for a multipart part.
mutating func writeHeaders(_ httpFields: HTTPFields) async throws

Parameters

httpFields

The header fields to write.

Discussion

Note

Override this method only for performance reasons. Most implementations should rely on the default implementation unless specific performance optimizations are needed.

Default Implementations

MultipartWriter Implementations