#[http]Expand description
Restricts function execution to standard HTTP requests only.
This attribute macro ensures the decorated function only executes for standard HTTP requests, excluding WebSocket upgrades and other protocol upgrade requests.
ยงUsage
use hyperlane::*;
use hyperlane_macros::*;
#[http]
async fn handle_http(ctx: Context) {
// HTTP request handling logic
}The macro takes no parameters and should be applied directly to async functions
that accept a Context parameter.