disable_http_hook

Attribute Macro disable_http_hook 

Source
#[disable_http_hook]
Expand description

Disables the default HTTP hook.

This attribute macro disables the default HTTP handling logic, allowing for a fully custom implementation. This macro requires the #[hyperlane(server: Server)] macro to be used to define the server instance.

§Usage

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

#[disable_http_hook("/")]
async fn custom_http_logic(ctx: Context) {
    // Custom logic to replace default HTTP hook
}

§Dependencies

This macro depends on the #[hyperlane(server: Server)] macro to define the server instance.