A comprehensive collection of procedural macros for building HTTP servers with enhanced functionality. This crate provides attribute macros that simplify HTTP request handling, protocol validation, response management, and request data extraction.
usecrate::*;/// Parses the attributes for the `OrderAttr` macro.
////// This implementation of the `Parse` trait allows `syn` to parse
/// an optional `order` from the macro's attribute tokens.
/// If no order is provided, it defaults to `0`.
implParse forOrderAttr{/// Parses the input stream into an `OrderAttr` struct.
////// # Arguments
////// - `input` - The token stream to parse.
////// # Returns
////// A `Result` containing the parsed `OrderAttr` or an error.
fnparse(input: ParseStream)->Result<Self>{if input.is_empty(){returnOk(OrderAttr { order:None});}let expr: Expr = input.parse()?;Ok(OrderAttr { order:Some(expr)})}}