We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 873e42d commit 297965dCopy full SHA for 297965d
Sources/Multipart/Parser.swift
@@ -227,6 +227,7 @@ public final class Parser {
227
}
228
229
230
+ /// Extracts the boundary from a multipart Content-Type header
231
public static func extractBoundary(contentType: BytesConvertible) throws -> Bytes {
232
let boundaryPieces = try contentType.makeBytes().string.components(separatedBy: "boundary=")
233
guard boundaryPieces.count == 2 else {
0 commit comments