http0_9

Attribute Macro http0_9 

Source
#[http0_9]
Expand description

Restricts function execution to HTTP/0.9 requests only.

This attribute macro ensures the decorated function only executes for HTTP/0.9 protocol requests, the earliest version of the HTTP protocol.

ยงUsage

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

#[http0_9]
async fn handle_http09(ctx: Context) {
    // Handle HTTP/0.9 requests
}

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