oyjh0381/moonmime/model does not have a README file
pub(all) suberror MimeError {
InvalidArgument(String)
InputTooLarge(Int, Int)
HeaderSectionTooLarge(Int, Int)
HeaderLineTooLong(Int, Int)
HeaderCountExceeded(Int, Int)
MalformedHeader(Int, String)
MissingHeaderTerminator(Int)
InvalidMediaType(String)
InvalidDisposition(String)
InvalidParameter(String)
InvalidBoundary(String)
MissingBoundary(String)
MissingClosingBoundary(String)
RecursionLimitExceeded(Int, Int)
EntityCountExceeded(Int, Int)
LeafBodyTooLarge(Int, Int)
DecodedOutputTooLarge(Int, Int)
InvalidBase64(Int, String)
InvalidQuotedPrintable(Int, String)
UnsupportedTransferEncoding(String)
UnsupportedCharset(String)
InvalidEncodedWord(String)
InvalidByteRange(Int, Int, Int)
IoFailure(String)
} derive(Eq, Debug)pub(all) struct ContentDisposition {
kind : String
parameters : Array[MediaParameter]
} derive(Eq, Debug)pub(all) enum DiagnosticCode {
BareLineFeed
BareCarriageReturn
HeaderWhitespaceBeforeColon
HeaderWithoutColon
ContinuationWithoutField
NonAsciiHeaderName
DuplicateSingletonHeader
InvalidEncodedWordPreserved
UnknownTransferEncodingPreserved
InvalidParameterPreserved
MissingMultipartPreambleBreak
TrailingBytesAfterBoundary
MissingClosingBoundaryAccepted
UnsupportedCharsetPreserved
} derive(Eq, Debug)pub(all) struct HeaderBlock {
fields : Array[HeaderField]
range : ByteRange
body_start : Int
} derive(Eq, Debug)pub(all) struct InternetMessage {
raw : Bytes
root : MimeEntity
diagnostics : Array[ParseDiagnostic]
stats : ParseStats
} derive(Eq, Debug)pub(all) struct MediaType {
top_level : String
subtype : String
parameters : Array[MediaParameter]
} derive(Eq, Debug)pub(all) struct MimeEntity {
path : Array[Int]
depth : Int
headers : HeaderBlock
media_type : MediaType
disposition : ContentDisposition?
transfer_encoding : TransferEncoding
kind : EntityKind
entity_range : ByteRange
body_range : ByteRange
preamble_range : ByteRange?
epilogue_range : ByteRange?
children : Array[MimeEntity]
} derive(Eq, Debug)pub(all) struct ParseDiagnostic {
level : DiagnosticLevel
code : DiagnosticCode
message : String
range : ByteRange
entity_path : Array[Int]
} derive(Eq, Debug)pub(all) struct ResourceLimits {
max_input_bytes : Int
max_header_bytes : Int
max_header_line_bytes : Int
max_header_count : Int
max_depth : Int
max_entities : Int
max_leaf_body_bytes : Int
max_decoded_leaf_bytes : Int
max_total_decoded_bytes : Int
max_parameter_count : Int
max_boundary_bytes : Int
max_diagnostics : Int
} derive(Eq, Debug)Install
Download zipByte-preserving recursive MIME message parser for MoonBit
Dependencies