multipartkit/parser

Values

pub fn parse(
  body: BitArray,
  content_type: String,
) -> Result(List(part.Part), error.MultipartError)

Parse a multipart body using default_limits().

content_type must be the full HTTP Content-Type value, including the boundary parameter — for example multipart/form-data; boundary=abc.

pub fn parse_with_limits(
  body: BitArray,
  content_type: String,
  limits: limit.Limits,
) -> Result(List(part.Part), error.MultipartError)

Parse a multipart body with caller-supplied limits.

Search Document