http3

Attribute Macro http3 

Source
#[http3]
Expand description

Restricts function execution to HTTP/3 requests only.

This attribute macro ensures the decorated function only executes for HTTP/3 protocol requests, the latest version of the HTTP protocol.

ยงUsage

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

#[http3]
async fn handle_http3(ctx: Context) {
    // Handle HTTP/3 requests
}

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