http1_1

Attribute Macro http1_1 

Source
#[http1_1]
Expand description

Restricts function execution to HTTP/1.1 requests only.

This attribute macro ensures the decorated function only executes for HTTP/1.1 protocol requests.

ยงUsage

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

#[http1_1]
async fn handle_http11(ctx: Context) {
    // Handle HTTP/1.1 requests
}

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