Attribute Macro filter_unknown_upgrade

Source
#[filter_unknown_upgrade]
Expand description

Handles requests with unknown or non-standard upgrade protocols.

This attribute macro configures the function to handle requests that specify unrecognized upgrade protocols, providing a fallback for non-standard upgrade request headers.

ยงUsage

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

#[filter_unknown_upgrade]
async fn handle_unknown_upgrade(ctx: Context) {
    // Handle requests with unknown upgrade protocols
}

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