#[tls]
Expand description
Restricts function execution to TLS-encrypted requests only.
This attribute macro ensures the decorated function only executes for requests that use TLS/SSL encryption on the connection.
ยงUsage
use hyperlane::*;
use hyperlane_macros::*;
#[tls]
async fn handle_secure(ctx: Context) {
// Handle TLS-encrypted requests only
}
The macro takes no parameters and should be applied directly to async functions
that accept a Context
parameter.