#[filter_unknown_method]
Expand description
Handles requests with unknown or non-standard HTTP methods.
This attribute macro configures the function to handle requests that use unrecognized or unsupported HTTP methods, providing a fallback for non-standard methods.
ยงUsage
use hyperlane::*;
use hyperlane_macros::*;
#[filter_unknown_method]
async fn handle_unknown_method(ctx: Context) {
// Handle requests with unknown HTTP methods
}
The macro takes no parameters and should be applied directly to async functions
that accept a Context
parameter.