rust-web-server 17.26.0

An HTTP web framework and server for Rust supporting HTTP/1.1, HTTP/2, and HTTP/3. No third-party HTTP dependencies — parsing, routing, middleware, auth, WebSocket, SSE, caching, tracing, and MCP server are all built in.
Documentation
use crate::null::{Null, NULL};

#[test]
fn null_check() {

    let clone = NULL.clone();
    assert_eq!(*NULL, clone);

    let to_string = NULL.to_string();
    assert_eq!("null".to_string(), to_string);

    let debug = format!("{:?}", NULL);
    assert_eq!("null".to_string(), debug);

    let parsed : Null = "null".parse::<Null>().unwrap();
    assert_eq!(parsed, *NULL);

    let parse_error = "notnull".parse::<Null>();
    assert!(parse_error.is_err());

    let error_message = parse_error.err().unwrap();
    assert_eq!("error parsing null: notnull", error_message.message);

}