hyperlane-plugin-multipart 23.3.1

A bounded, traversal-proof RFC 7578 multipart/form-data upload parser and validation middleware plugin for the Hyperlane framework with part/file/size limits, filename sanitization, magic-byte MIME sniffing, and prebuilt 400/413/415 wire responses.
Documentation
//! hyperlane-plugin-multipart
//!
//! Bounded RFC 7578 `multipart/form-data` upload parser and guard for Hyperlane
//! with file/field size limits, traversal-proof filename sanitization,
//! magic-byte MIME sniffing, and prebuilt rejection wire responses.

mod r#const;
mod r#enum;
mod r#fn;
mod r#impl;
mod r#static;
mod r#struct;

#[cfg(test)]
#[path = "../tests/mod.rs"]
mod tests;

pub use {r#const::*, r#enum::*, r#fn::*, r#struct::*};

pub(crate) use r#static::*;

use std::{
    collections::VecDeque,
    error::Error,
    fmt::{self, Display, Formatter},
    str::from_utf8,
    sync::OnceLock,
};

use {
    hyperlane::{
        CONTENT_TYPE, Context, HttpStatus, Request, Response, ResponseError, ServerHook, Status,
        Stream,
    },
    lombok_macros::*,
};