trace

Attribute Macro trace 

Source
#[trace]
Expand description

Restricts function execution to HTTP TRACE requests only.

This attribute macro ensures the decorated function only executes when the incoming request uses the TRACE HTTP method. Requests with other methods will be filtered out.

ยงUsage

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

#[trace]
async fn handle_trace(ctx: Context) {
    // Function body
}

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