multipartkit/header
Values
pub fn boundary(
content_type: String,
) -> Result(String, error.MultipartError)
Extract the boundary parameter from a Content-Type header value.
The error priority documented for parse is enforced here:
InvalidContentType(value)— value cannot be parsed as a media type.UnsupportedMediaType(media_type)— top-level media type is notmultipart/*.MissingBoundary— theboundaryparameter is absent.InvalidBoundary(value)— present but violates the RFC 2046 grammar.