Function
makeBoundaryBytes(_:end:as:)
Creates a properly formatted boundary to be used in a custom
writeBoundary(end:) implementation.func makeBoundaryBytes<OutboundBody>(_ boundary: String, end: Bool = false, as: OutboundBody.Type = OutboundBody.self) -> OutboundBody where OutboundBody : RangeReplaceableCollection, OutboundBody : Sendable, OutboundBody.Element == UInt8
Parameters
boundaryThe boundary to be formatted.
endWhether this is the end boundary of the message.
asThe body type to produce the boundary as.
Return Value
A formatted boundary.