longhuanlin/multipart-stream/form does not have a README file
pub(all) suberror FormError {
InvalidCollectorLimits(reason~ : String)
UnexpectedEvent(reason~ : String)
FilePartRejected(part_index~ : Int)
FieldLimitExceeded(limit~ : Int64, observed~ : Int64)
FieldCountExceeded(limit~ : Int, observed~ : Int)
InvalidTextEncoding(field_name~ : String, charset~ : String)
SinkFailed(reason~ : String)
SourceFailed(reason~ : String)
Protocol(error~ : MultipartError)
} derive(Eq, Debug)pub struct FieldCollector {
limits : FieldCollectorLimits
fields : Array[FormField]
active_meta : PartMeta?
body : Buffer
total_field_bytes : Int64
message_ended : Bool
}fn FieldCollector::consume(self : FieldCollector, events : Array[MultipartEvent]) -> Unit raise FormErrorfn FieldCollector::decoded_fields(self : FieldCollector, default_charset? : String) -> Array[DecodedField] raise FormErrorfn PartSinkAdapter::new(on_begin : (PartMeta) -> Result[Unit, FormError], on_data : (Bytes) -> Result[Unit, FormError], on_end : (Int) -> Result[Unit, FormError], on_message_end : () -> Result[Unit, FormError]) -> PartSinkAdapterfn parse_from_source(source : ChunkSourceAdapter, parser : MultipartParser) -> Array[MultipartEvent] raise FormErrorInstall
Download zipStreaming multipart/form-data parser and writer for MoonBit.