Skip to content

Commit 297965d

Browse files
committed
add extract boundary doc
1 parent 873e42d commit 297965d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Multipart/Parser.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ public final class Parser {
227227
}
228228
}
229229

230+
/// Extracts the boundary from a multipart Content-Type header
230231
public static func extractBoundary(contentType: BytesConvertible) throws -> Bytes {
231232
let boundaryPieces = try contentType.makeBytes().string.components(separatedBy: "boundary=")
232233
guard boundaryPieces.count == 2 else {

0 commit comments

Comments
 (0)