hyperlane-plugin-problem-details 23.3.0

An RFC 9457 Problem Details (application/problem+json) error normalizer and builder plugin for the Hyperlane framework with zero-overhead 2xx/3xx fast path and automatic 4xx/5xx error structuring.
Documentation
//! hyperlane-plugin-problem-details
//!
//! RFC 9457 (`application/problem+json`) error response builder and automatic
//! `4xx`/`5xx` normalizer for Hyperlane with a zero-overhead `2xx`/`3xx`
//! fast path.

mod r#const;
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#fn::*, r#struct::*};

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

use std::{
    collections::{BTreeMap, VecDeque},
    str::from_utf8,
    sync::OnceLock,
};

use {
    hyperlane::{CONTENT_TYPE, Context, HttpStatus, Response, ServerHook, Status, Stream},
    lombok_macros::*,
    serde::{Deserialize, Serialize},
    serde_json::{Value, to_vec},
};