http1_1_or_higher

Attribute Macro http1_1_or_higher 

Source
#[http1_1_or_higher]
Expand description

Restricts function execution to HTTP/1.1 or higher protocol versions.

This attribute macro ensures the decorated function only executes for HTTP/1.1 or newer protocol versions, including HTTP/2, HTTP/3, and future versions.

ยงUsage

use hyperlane::*;
use hyperlane_macros::*;

#[http1_1_or_higher]
async fn handle_modern_http(ctx: Context) {
    // Handle HTTP/1.1, HTTP/2, HTTP/3, etc.
}

The macro takes no parameters and should be applied directly to async functions that accept a Context parameter.